Remove dependency on boost::random, since that is now in std

This commit is contained in:
Twan van Laarhoven
2020-04-25 22:22:15 +02:00
parent 787a707900
commit b7ed93cd02
3 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -22,9 +22,8 @@ On windows, the program can be compiled with Visual Studio (recommended) or with
vcpkg install wxwidgets
vcpkg install boost-smart-ptr
vcpkg install boost-regex
vcpkg install hunspell
vcpkg install boost-random
vcpkg install boost-logic
vcpkg install hunspell
vcpkg integrate install
````
* Then just use "Open Folder" from inside visual studio to open the Magic Set Editor source code root folder.
+3 -3
View File
@@ -12,8 +12,8 @@
#include <util/prec.hpp>
#include <util/reflect.hpp>
#include <script/scriptable.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/logic/tribool.hpp>
#include <random>
using boost::tribool;
DECLARE_POINTER_TYPE(PackType);
@@ -137,8 +137,8 @@ class PackGenerator {
void update_card_counts();
// only for PackInstance
SetP set; ///< The set
boost::mt19937 gen; ///< Random generator
SetP set; ///< The set
mt19937 gen; ///< Random generator
private:
/// Details for each PackType
map<String,PackInstanceP> instances;
-1
View File
@@ -17,7 +17,6 @@
#include <data/pack.hpp>
#include <data/settings.hpp>
#include <util/window_id.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <wx/spinctrl.h>
#include <wx/dcbuffer.h>