Browse Source

Math: haha std::pair you silly stupid thing.

pull/529/head
Vladimír Vondruš 5 years ago
parent
commit
abda09298a
  1. 2
      src/Magnum/Math/Range.h

2
src/Magnum/Math/Range.h

@ -146,7 +146,7 @@ template<UnsignedInt dimensions, class T> class Range {
* *
* @snippet MagnumMath.cpp Range-construct-minmax3D * @snippet MagnumMath.cpp Range-construct-minmax3D
* *
* @todo std::pair constructors are not constexpr in C++11, make it so in C++14 * @todo std::pair constructors are not constexpr in C++11, make it so in C++14... actually, replace with Pair
*/ */
/*implicit*/ Range(const std::pair<VectorType, VectorType>& minmax) noexcept: /*implicit*/ Range(const std::pair<VectorType, VectorType>& minmax) noexcept:
_min{minmax.first}, _max{minmax.second} {} _min{minmax.first}, _max{minmax.second} {}

Loading…
Cancel
Save