aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Containers.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-09-01 11:52:08 +0200
committerariel- <ariel-@users.noreply.github.com>2017-04-11 14:31:03 -0300
commit1787718e258f0e3c7673b5886c098878fb8a17f6 (patch)
treeba22643ebb1dbcf1c535364d681adbe33bf5260c /src/common/Utilities/Containers.h
parent4d7e7a97b329dc8ee4354f7be26c5e5efbaeba6b (diff)
Core/Random: Remove no longer needed hack for VS 2013
(cherry picked from commit 59fe9087447dc58c3f41fb6f647bc2b50a95b9b5)
Diffstat (limited to 'src/common/Utilities/Containers.h')
-rw-r--r--src/common/Utilities/Containers.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h
index 9bdc0999cf5..dda48858878 100644
--- a/src/common/Utilities/Containers.h
+++ b/src/common/Utilities/Containers.h
@@ -20,7 +20,6 @@
#include "Define.h"
#include "Random.h"
-#include "Util.h"
#include <algorithm>
#include <functional>
#include <list>
@@ -84,8 +83,7 @@ namespace Trinity
template <class C>
typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::vector<double> weights)
{
- Trinity::discrete_distribution_param<uint32> ddParam(weights.begin(), weights.end());
- std::discrete_distribution<uint32> dd(ddParam);
+ std::discrete_distribution<uint32> dd(weights.begin(), weights.end());
typename C::const_iterator it = container.begin();
std::advance(it, dd(SFMTEngine::Instance()));
return it;