add bitset operator=()

This commit is contained in:
bolero-MURAKAMI 2013-11-12 20:44:27 +09:00
parent 9c37deb7d7
commit d386893a74
3 changed files with 60 additions and 6 deletions

View file

@ -10,6 +10,7 @@
#include <sstream>
#include <sprout/bitset.hpp>
#include <sprout/utility/move.hpp>
#include <testspr/tools.hpp>
namespace testspr {
@ -21,6 +22,19 @@ namespace testspr {
// 20.5.2 bitset operations:
// operator=
{
auto bits = bitset_t(0xDEADBACE);
bits = bits1;
TESTSPR_ASSERT(bits == bits1);
}
{
auto bits2 = bits1;
auto bits = bitset_t(0xDEADBACE);
bits = sprout::move(bits2);
TESTSPR_ASSERT(bits == bits1);
}
// operator&=
{
auto bits = bits1;