From be5a67763b78896a8de7335f35107965ad706b99 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 12 May 2015 13:05:04 -0400 Subject: [PATCH] Add new min and max methods on safe --- include/fc/safe.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fc/safe.hpp b/include/fc/safe.hpp index bb86a71..0c1a12e 100644 --- a/include/fc/safe.hpp +++ b/include/fc/safe.hpp @@ -22,6 +22,10 @@ namespace fc { safe(){} safe( const safe& o ):value(o.value){} + static safe max() + { return std::numeric_limits::max(); } + static safe min() + { return std::numeric_limits::min(); } safe& operator += ( const safe& b ) {