
7 Oct
2010
7 Oct
'10
9:01 a.m.
Hi, I was thinking that static_bounded might be more easily understood by people used to static_cast. Following that logic, runtime constrainted types would be prefixed with dynamic_ like dynamic_cast. My 2 cents. On Thu, Oct 7, 2010 at 04:28, Christian Holmquist <c.holmquist@gmail.com>wrote:
bounded<int> // bounds specified at runtime bounded_ct<int, 0, 10> // bounds specified as compile time constants
Looks good to me.
Maybe even "c" alone would suffice?
bounded_c<int, 0, 10>
Reminds me of boost::mpl::integral_c.
+1 for bounded and bounded_c.
/ Christian _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost