|
|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <Utility/Debug.h> |
|
|
|
|
#include <corradeCompatibility.h> |
|
|
|
|
|
|
|
|
|
#include "Types.h" |
|
|
|
|
|
|
|
|
|
@ -75,7 +76,13 @@ template<std::size_t size> class BoolVector {
|
|
|
|
|
#ifdef DOXYGEN_GENERATING_OUTPUT |
|
|
|
|
inline explicit BoolVector(T value); |
|
|
|
|
#else |
|
|
|
|
#ifndef CORRADE_GCC46_COMPATIBILITY |
|
|
|
|
template<class T, class U = typename std::enable_if<std::is_same<bool, T>::value && size != 1, bool>::type> inline constexpr explicit BoolVector(T value): BoolVector(typename Implementation::GenerateSequence<DataSize>::Type(), value ? FullSegmentMask : 0) {} |
|
|
|
|
#else |
|
|
|
|
template<class T, class U = typename std::enable_if<std::is_same<bool, T>::value && size != 1, bool>::type> inline explicit BoolVector(T value) { |
|
|
|
|
*this = BoolVector(typename Implementation::GenerateSequence<DataSize>::Type(), value ? FullSegmentMask : 0); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/** @brief Copy constructor */ |
|
|
|
|
|