This commit is contained in:
bolero-MURAKAMI 2016-02-12 22:07:44 +09:00
parent e7a79b31ea
commit cc756cb22d
2 changed files with 6 additions and 5 deletions

View file

@ -943,14 +943,14 @@ namespace sprout {
typedef bool value_type;
public:
class reference {
friend class bitset;
friend class bitset<N>;
private:
word_type* wp_;
size_type bpos_;
private:
reference() SPROUT_DELETED_FUNCTION_DECL
public:
SPROUT_CONSTEXPR reference(bitset& b, size_type pos) SPROUT_NOEXCEPT
SPROUT_CONSTEXPR reference(bitset<N>& b, size_type pos) SPROUT_NOEXCEPT
: wp_(&b.getword(pos))
, bpos_(base_type::whichbit(pos))
{}