stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <>
Subject Some internal aliases for __rw_integral_constant?
Date Tue, 24 Jun 2008 22:15:55 GMT
Propose adding the following defs (or something similar) to
<rw/_meta_help.h> primarily for our own convenience:
template <bool _Bool>
class __rw_bool_const: public __rw_integral_constant<bool, _Bool> {};
template <int _Int>
class __rw_int_const: public __rw_integral_constant<int, _Int> {};
template <_RWSTD_SIZE_T _Size>
class __rw_size_const: public __rw_integral_constant<_RWSTD_SIZE_T,
_Size> {};

The name __rw_integral_constant is a bit too long for the amount of
usage that I'm anticipating.  Or am I being premature?

Thoughts?  Alternatives?


View raw message