Describe the bug
Brace-initializing a BitSet with a string results in a BitSet initialized to 1. This is because the initializer_list<T> ctor is preferred over the const std::string& one. The former ctor's type should be changed to initializer_list<bool> instead. Moreover, line 412 should ideally be commented out.
To Reproduce
Brace-initialize a BitSet with a std::string.
Expected behavior
BitSet contains a bit-for-bit representation of the contents of the "binary" std::string.
Toolchain (please complete the following information):
- OS: Arch Linux
- Compiler: Clang 13.0.0
- Empirical Version:
native-canvas branch
Additional context
This bug is only present in the native-canvas branch.
Describe the bug
Brace-initializing a BitSet with a string results in a BitSet initialized to 1. This is because the
initializer_list<T>ctor is preferred over theconst std::string&one. The former ctor's type should be changed toinitializer_list<bool>instead. Moreover, line 412 should ideally be commented out.To Reproduce
Brace-initialize a BitSet with a std::string.
Expected behavior
BitSet contains a bit-for-bit representation of the contents of the "binary" std::string.
Toolchain (please complete the following information):
native-canvasbranchAdditional context
This bug is only present in the
native-canvasbranch.