diff options
author | Rider Linden <rider@lindenlab.com> | 2015-09-02 13:48:46 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-09-02 13:48:46 -0700 |
commit | 92a8b6690e2b5f8379e834ea33ea26ec16c1e3f6 (patch) | |
tree | 4cd4fd719c84daa5f09908afb92fb8bd01cbd3dd /indra | |
parent | 6c9610b4e44020bf266a5da7375fb9f2b24f4f8a (diff) |
Use boost assign to initialize default pool sizes.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llmessage/llcoproceduremanager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llmessage/llcoproceduremanager.cpp b/indra/llmessage/llcoproceduremanager.cpp index 062f2e6e42..c9dfcae293 100644 --- a/indra/llmessage/llcoproceduremanager.cpp +++ b/indra/llmessage/llcoproceduremanager.cpp @@ -27,13 +27,16 @@ #include "linden_common.h" #include "llcoproceduremanager.h" +#include <boost/assign.hpp> //========================================================================= // Map of pool sizes for known pools -static std::map<std::string, U32> DefaultPoolSizes; - // *TODO$: When C++11 this can be initialized here as follows: // = {{"AIS", 25}, {"Upload", 1}} +static std::map<std::string, U32> DefaultPoolSizes = + boost::assign::map_list_of + (std::string("Upload"), 1) + (std::string("AIS"), 25); #define DEFAULT_POOL_SIZE 5 @@ -124,8 +127,6 @@ private: //========================================================================= LLCoprocedureManager::LLCoprocedureManager() { - DefaultPoolSizes.insert(std::map<std::string, U32>::value_type("Upload", 1)); - DefaultPoolSizes.insert(std::map<std::string, U32>::value_type("AIS", 25)); } LLCoprocedureManager::~LLCoprocedureManager() |