Make CheckRange constexpr (#754) (#755)

This commit is contained in:
Alex Green 2019-01-14 19:44:45 -05:00 committed by Anna Gringauze
parent be3c3c2731
commit 7a7d025ffa

View File

@ -544,7 +544,7 @@ public:
#endif // _MSC_VER #endif // _MSC_VER
private: private:
static bool CheckRange(index_type idx, index_type size) noexcept static constexpr bool CheckRange(index_type idx, index_type size) noexcept
{ {
// Optimization: // Optimization:
// //