Commit ef4210fb authored by Davis King's avatar Davis King

Made the relational operators constexpr so they don't accidentally cause

compilation errors when they get pulled into the scope of template
metaprogramming expressions.
parent 104c166c
......@@ -283,7 +283,7 @@ namespace dlib
typename A,
typename B
>
bool operator> (
constexpr bool operator> (
const A& a,
const B& b
) { return b < a; }
......@@ -294,7 +294,7 @@ namespace dlib
typename A,
typename B
>
bool operator!= (
constexpr bool operator!= (
const A& a,
const B& b
) { return !(a == b); }
......@@ -305,7 +305,7 @@ namespace dlib
typename A,
typename B
>
bool operator<= (
constexpr bool operator<= (
const A& a,
const B& b
) { return !(b < a); }
......@@ -316,7 +316,7 @@ namespace dlib
typename A,
typename B
>
bool operator>= (
constexpr bool operator>= (
const A& a,
const B& b
) { return !(a < b); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment