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 nsrs_REQUIRES_T(), see martinmoene/nonstd-lite-project#40
  • Loading branch information
martinmoene committed Mar 6, 2020
1 parent 3733437 commit b59744e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/nonstd/ring_span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ nsrs_DISABLE_MSVC_WARNINGS( 4345 26439 26440 26472 26473 26481 26490 )
template< bool B = (__VA_ARGS__), typename std::enable_if<B, int>::type = 0 >

#define nsrs_REQUIRES_T(...) \
, typename = typename std::enable_if< (__VA_ARGS__), nonstd::ring_span_lite::detail::enabler >::type
, typename std::enable_if< (__VA_ARGS__), int >::type = 0

#endif

Expand All @@ -252,10 +252,6 @@ nsrs_DISABLE_MSVC_WARNINGS( 4345 26439 26440 26472 26473 26481 26490 )

namespace nonstd { namespace ring_span_lite {

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

// type traits C++11:

namespace std11 {
Expand Down

0 comments on commit b59744e

Please sign in to comment.