Skip to content

Commit

Permalink
Change requires to use a default template argument (nonstd-lite-proje…
Browse files Browse the repository at this point in the history
…ct 40)

Fixes implementation of nsop_REQUIRES_T(), see martinmoene/nonstd-lite-project#40
  • Loading branch information
martinmoene committed Mar 6, 2020
1 parent 2e12019 commit 6d4a178
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/nonstd/observer_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,14 @@ namespace nonstd {
// Method enabling

#define nsop_REQUIRES_T(VA) \
, typename = typename std::enable_if< (VA), nonstd::observer_ptr_lite::detail::enabler >::type
, typename std::enable_if< (VA), int >::type = 0

//
// oberver_ptr:
//

namespace nonstd { namespace observer_ptr_lite {

// for optional_REQUIRES_T

namespace detail { /*enum*/ class enabler{}; }

// observer_ptr:

template< class W >
Expand Down

0 comments on commit 6d4a178

Please sign in to comment.