Skip to content

Commit

Permalink
Fixed Linux/MacOS compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbnolok committed Oct 17, 2023
1 parent ec419a2 commit 25ea0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/sphere_library/sptr_containers.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CSUniquePtrVector : public _CSPtrVectorBase<_Type, std::unique_ptr<_Type>>

template <typename... _ArgPackType>
inline void emplace_front(_ArgPackType&&... args) {
_base_type::emplace(_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
this->_base_type::emplace(this->_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
}

// Explicitly create a unique_ptr, then add to this container.
Expand Down Expand Up @@ -144,7 +144,7 @@ class CSSharedPtrVector : public _CSPtrVectorBase<_Type, std::shared_ptr<_Type>>

template <typename... _ArgPackType>
inline void emplace_front(_ArgPackType&&... args) {
_base_type::emplace(_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
this->_base_type::emplace(this->_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
}

// Explicitly create a unique_ptr, then add to this container.
Expand Down Expand Up @@ -190,7 +190,7 @@ class CSWeakPtrVector : public _CSPtrVectorBase<_Type, std::weak_ptr<_Type>>

template <typename... _ArgPackType>
inline void emplace_front(_ArgPackType&&... args) {
_base_type::emplace(_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
this->_base_type::emplace(this->_base_type::cbegin(), std::forward<_ArgPackType>(args)...);
}
};
template <typename _Type, typename _Comp = std::less<_Type>>
Expand Down

0 comments on commit 25ea0df

Please sign in to comment.