mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 22:45:22 +08:00
bitset (_Base_bitset<>::_Base_bitset(), [...]): Simplify.
2010-12-08 Paolo Carlini <paolo.carlini@oracle.com> * include/std/bitset (_Base_bitset<>::_Base_bitset(), _Base_bitset(unsigned long)): Simplify. From-SVN: r167624
This commit is contained in:
parent
2b00e20179
commit
b6710d1a51
@ -1,3 +1,8 @@
|
||||
2010-12-08 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/std/bitset (_Base_bitset<>::_Base_bitset(),
|
||||
_Base_bitset(unsigned long)): Simplify.
|
||||
|
||||
2010-12-07 François Dumont <francois.cppdevs@free.fr>
|
||||
|
||||
* include/bits/stl_iterator.h: Add move_iterator operators overloads
|
||||
|
@ -72,9 +72,10 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||
/// 0 is the least significant word.
|
||||
_WordT _M_w[_Nw];
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
constexpr _Base_bitset() : _M_w({ }) { }
|
||||
_GLIBCXX_CONSTEXPR _Base_bitset()
|
||||
: _M_w() { }
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
constexpr _Base_bitset(unsigned long long __val)
|
||||
: _M_w({ _WordT(__val)
|
||||
#if __SIZEOF_LONG_LONG__ > __SIZEOF_LONG__
|
||||
@ -82,14 +83,9 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||
#endif
|
||||
}) { }
|
||||
#else
|
||||
_Base_bitset()
|
||||
{ _M_do_reset(); }
|
||||
|
||||
_Base_bitset(unsigned long __val)
|
||||
{
|
||||
_M_do_reset();
|
||||
_M_w[0] = __val;
|
||||
}
|
||||
: _M_w()
|
||||
{ _M_w[0] = __val; }
|
||||
#endif
|
||||
|
||||
static _GLIBCXX_CONSTEXPR size_t
|
||||
|
Loading…
Reference in New Issue
Block a user