This file has been truncated, but you can view the full file.
This file contains hidden or 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 <type_traits> | |
template<typename...Ts> | |
struct list {}; | |
template<int I> | |
struct generator; | |
template<> | |
struct generator<9> { |
This file contains hidden or 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
#!/bin/bash | |
pushd . | |
dir=$(pwd) | |
cd $2 | |
$1 --preserve-paths --relative-only $(find $dir/$3 -iname "*.gcda") >/dev/null | |
echo "#!/usr/bin/python | |
import json,sys,codecs |
This file contains hidden or 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 <type_traits> | |
template<class, class> struct pair { }; | |
template<class... Ts> | |
struct map : Ts... { }; | |
template<class T> | |
struct no_decay { using type = T; }; |
This file contains hidden or 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 <boost/hana.hpp> | |
namespace hana = boost::hana; | |
using namespace hana::literals; | |
constexpr auto m = hana::make_map( | |
hana::make_pair(1_c, 1_c) | |
, hana::make_pair(2_c, 2_c) | |
, hana::make_pair(3_c, 3_c) |
This file contains hidden or 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 <type_traits> | |
#include <boost/hana.hpp> | |
namespace hana = boost::hana; | |
template<class> | |
struct yet { }; | |
template<typename T> | |
struct some_magic { |
This file contains hidden or 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
#ifndef TEST_HPP | |
#define TEST_HPP | |
#include <cassert> | |
#define expect(...) assert((__VA_ARGS__)) | |
#define expect_eq(t1, t2) assert((t1 == t2)) | |
#define expect_neq(t1, t2) assert((t1 != t2)) | |
struct test { |
This file contains hidden or 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
#!/bin/bash | |
git clone --quiet --depth=1 --single-branch https://github.com/boostorg/boost.git | |
cd boost | |
git submodule update --init --quiet -- tools/build tools/inspect libs/wave `echo $@ | tr ' ' '\n' | xargs -i% echo libs/% | xargs` |
This file contains hidden or 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
#define BOOST_MPL_LIMIT_VECTOR_SIZE 70 | |
#if (BOOST_MPL_LIMIT_VECTOR_SIZE <= 50) | |
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS | |
#include <boost/mpl/vector.hpp> | |
#else | |
#include <boost/preprocessor/iterate.hpp> | |
#include <boost/mpl/vector/vector50.hpp> | |
namespace boost { |
This file contains hidden or 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
#ifndef SDL_MSM_HPP | |
#define SDL_MSM_HPP | |
#include <type_traits> | |
#include <boost/utility/enable_if.hpp> | |
#include <boost/mpl/vector.hpp> | |
#include <boost/mpl/transform.hpp> | |
#include <boost/mpl/pop_front.hpp> | |
#include <boost/mpl/front.hpp> | |
#include <boost/mpl/empty.hpp> |
This file contains hidden or 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
#ifndef LOGGER_HPP | |
#define LOGGER_HPP | |
#include <iostream> | |
#include <sstream> | |
#include <boost/none_t.hpp> | |
enum log_level { | |
error = 1, | |
warn = 2, |