Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jan 28, 2024
1 parent a98f331 commit 6b26941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rest_rpc/cplusplus_14.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ template <class T, size_t N> struct unique_if<T[N]> {

template <class T, class... Args>
typename unique_if<T>::single_object make_unique(Args &&...args) {
return unique_ptr<T>(new T(forward<Args>(args)...));
return std::unique_ptr<T>(new T(forward<Args>(args)...));
}

template <class T> typename unique_if<T>::unknown_bound make_unique(size_t n) {
typedef typename std::remove_extent<T>::type U;
return unique_ptr<T>(new U[n]());
return std::unique_ptr<T>(new U[n]());
}

template <class T, class... Args>
Expand Down

0 comments on commit 6b26941

Please sign in to comment.