mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add bitset operator=()
This commit is contained in:
parent
9c37deb7d7
commit
d386893a74
3 changed files with 60 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue