This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
namespace detail | |
{ | |
//! Creates a c string from a sequence of characters | |
/*! The c string created will always be prefixed by "tuple_element" | |
Based on code from: http://stackoverflow.com/a/20973438/710791 */ | |
template<char...Cs> struct char_seq_to_c_str | |
{ | |
static const int length = 13; // number of chars in the word: tuple_element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notes on compiling boost for other architectures | |
32 bit gcc | |
./b2 --with-serialization --with-test address-model=32 cflags=-m32 cxxflags="-m32 -std=c++11" architecture=x86 instruction-set=i686 -a | |
64 bit gcc | |
./b2 --with-serialization --with-test -a cxxflags="-std=c++11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cereal/archives/json.hpp> | |
#include <cereal/types/polymorphic.hpp> | |
#include <cereal/types/string.hpp> | |
#include <cereal/types/vector.hpp> | |
#include <iostream> | |
#include <sstream> | |
#include <functional> | |
class Node | |
{ |