Rip out old workarounds, hacks and macros for newer C++ features not being supported back in the day.
Adds LL_COMPILE_TIME_MESSAGE support to Linux. llfinite -> std::isfinite llisnan -> std::isnan vector_shrink_to_fit -> vector.shrink_to_fit
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "llsd.h"
|
||||
|
||||
#include "llerror.h"
|
||||
#include "../llmath/llmath.h"
|
||||
#include "llformat.h"
|
||||
#include "llsdserialize.h"
|
||||
#include "stringize.h"
|
||||
@@ -249,10 +248,10 @@ namespace
|
||||
};
|
||||
|
||||
LLSD::Boolean ImplReal::asBoolean() const
|
||||
{ return !llisnan(mValue) && mValue != 0.0; }
|
||||
{ return !std::isnan(mValue) && mValue != 0.0; }
|
||||
|
||||
LLSD::Integer ImplReal::asInteger() const
|
||||
{ return !llisnan(mValue) ? (LLSD::Integer)mValue : 0; }
|
||||
{ return !std::isnan(mValue) ? (LLSD::Integer)mValue : 0; }
|
||||
|
||||
LLSD::String ImplReal::asString() const
|
||||
{ return llformat("%lg", mValue); }
|
||||
|
||||
Reference in New Issue
Block a user