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 28ff72e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 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 @@ -354,11 +346,11 @@ class ring
RingSpan rs;
};

} // namespace nsrs
} // namespace ring_span_lite

// Make types available in namespace nonstd:

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

} // namespace nonstd

Expand Down

0 comments on commit 28ff72e

Please sign in to comment.