diff options
author | Naios <naios-dev@live.de> | 2015-04-27 17:01:30 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2015-04-27 17:01:30 +0200 |
commit | d37ecf796ef24fe96e56ef5262bab1ae4390dc2f (patch) | |
tree | 41c3f6d6493175a595af3bf387403763c1345cd2 /src/server/shared/Common.h | |
parent | 5acc4b14aa81a5e9a946d11cfa9034d334ea7144 (diff) |
Core/Misc: Use boost::in_place() to initialize optionals.
* Improves commit 800d5d893964a822655
* Thanks @Shauren for this great suggestion.
Diffstat (limited to 'src/server/shared/Common.h')
-rw-r--r-- | src/server/shared/Common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/Common.h b/src/server/shared/Common.h index 4e1e24cce42..dc9e948966d 100644 --- a/src/server/shared/Common.h +++ b/src/server/shared/Common.h @@ -40,6 +40,7 @@ #include <algorithm> #include <boost/optional.hpp> +#include <boost/utility/in_place_factory.hpp> #include "Debugging/Errors.h" |