Skip to content

Commit

Permalink
Change namespace nsrs to ring_span_lite as used in ring_span.hpp
Browse files Browse the repository at this point in the history
Use integral_constant and bool_constant supplied by ring_span.hpp
  • Loading branch information
martinmoene committed May 21, 2024
1 parent b566004 commit f2f42fd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions include/nonstd/ring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,10 @@
# include <array>
#endif

namespace nonstd {

namespace nsrs {
namespace nonstd { namespace ring_span_lite {

namespace std11 {

template< class T, T v > struct integral_constant { enum { value = v }; };
template< bool B > struct bool_constant : integral_constant<bool, B>{};

typedef bool_constant< true > true_type;
typedef bool_constant< false > false_type;

template< class C >
typename C::iterator begin( C & c ) { return c.begin(); }

Expand Down Expand Up @@ -358,7 +350,7 @@ class ring

// Make types available in namespace nonstd:

using nsrs::ring;
using ring_span_lite::ring;

} // namespace nonstd

Expand Down

0 comments on commit f2f42fd

Please sign in to comment.