Skip to content

Instantly share code, notes, and snippets.

#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
@AzothAmmo
AzothAmmo / boost_compilation.txt
Last active August 29, 2015 14:00
Boost compilation under various compilers
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"
#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
{