-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up constructors/assignments and usages
- Explicitly set each operator= - Explicitly import the base class - Explicitly default the constructors of higher-level classes
- Loading branch information
Showing
6 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2910,8 +2910,13 @@ namespace ITSY_BITSY_SOURCE_NAMESPACE | |
using __base_t = __packed_small_bit_vector<_Type, _InlineWords, _Allocator, false>; | ||
|
||
public: | ||
|
||
using __base_t::__base_t; | ||
using __base_t::operator=; | ||
__small_bit_vector(const __small_bit_vector&) = default; | ||
__small_bit_vector(__small_bit_vector&&) = default; | ||
|
||
__small_bit_vector& operator=(const __small_bit_vector&) = default; | ||
__small_bit_vector& operator=(__small_bit_vector&&) = default; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ThePhD
Author
Owner
|
||
}; | ||
} // namespace ITSY_BITSY_SOURCE_NAMESPACE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,11 @@ namespace bitsy | |
using const_sentinel = typename base_t::const_sentinel; | ||
|
||
using base_t::base_t; | ||
using base_t::operator=; | ||
small_bit_vector(const small_bit_vector&) = default; | ||
small_bit_vector(small_bit_vector&&) = default; | ||
|
||
small_bit_vector& operator=(const small_bit_vector&) = default; | ||
small_bit_vector& operator=(small_bit_vector&&) = default; | ||
}; | ||
|
||
template<typename Word, | ||
|
@@ -71,7 +75,11 @@ namespace bitsy | |
using const_sentinel = typename base_t::const_sentinel; | ||
|
||
using base_t::base_t; | ||
using base_t::operator=; | ||
packed_small_bit_vector(const packed_small_bit_vector&) = default; | ||
packed_small_bit_vector(packed_small_bit_vector&&) = default; | ||
|
||
packed_small_bit_vector& operator=(const packed_small_bit_vector&) = default; | ||
packed_small_bit_vector& operator=(packed_small_bit_vector&&) = default; | ||
This comment has been minimized.
Sorry, something went wrong.
jeb2239
|
||
}; | ||
} // namespace bitsy | ||
|
||
|
Submodule span-lite
updated
6 files
+31 −0 | .editorconfig | |
+26 −0 | .gitattributes | |
+12 −0 | .gitignore | |
+4 −0 | .tgitconfig | |
+26 −9 | include/nonstd/span.hpp | |
+17 −0 | test/span.t.cpp |
Why is this necessary doesn't the base class have all these operations?