diff options
author | callum_linden <none@none> | 2015-09-29 13:03:51 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2015-09-29 13:03:51 -0700 |
commit | 11c188dc734fd1dc921a2fa4c14e89a0e190c26b (patch) | |
tree | 3b2f16cdc2ebfcc30d30a28030a9aafb6eae0c58 /indra/llcommon/llstl.h | |
parent | 3e20770f350652b91fd4b4a5bbef9b5f03561310 (diff) | |
parent | 2d52b62e67cf46222396c724d00d2de874819197 (diff) |
Merge with viewer-release (DRTVWR-368)
Diffstat (limited to 'indra/llcommon/llstl.h')
-rwxr-xr-x | indra/llcommon/llstl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llcommon/llstl.h b/indra/llcommon/llstl.h index 02f10fa2ba..0435cb8a08 100755 --- a/indra/llcommon/llstl.h +++ b/indra/llcommon/llstl.h @@ -27,6 +27,7 @@ #ifndef LL_LLSTL_H #define LL_LLSTL_H +#include "stdtypes.h" #include <functional> #include <algorithm> #include <map> @@ -272,6 +273,7 @@ inline T get_if_there(const std::map<K,T>& inmap, const K& key, T default_value) } }; +// Useful for replacing the removeObj() functionality of LLDynamicArray // Example: // for (std::vector<T>::iterator iter = mList.begin(); iter != mList.end(); ) // { @@ -530,7 +532,7 @@ bool before(const std::type_info* lhs, const std::type_info* rhs) return strcmp(lhs->name(), rhs->name()) < 0; #else // not Linux, or gcc 4.4+ // Just use before(), as we normally would - return lhs->before(*rhs); + return lhs->before(*rhs) ? true : false; #endif } |