Skip to content

Instantly share code, notes, and snippets.

View te.hpp
//
// Copyright (c) 2018 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#if not defined(__cpp_variadic_templates) or \
not defined(__cpp_rvalue_references) or not defined(__cpp_decltype) or \
View sml.hpp
//
// Copyright (c) 2016-2017 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <utility>
#if (__cplusplus < 201305L && _MSC_VER < 1900)
View sml.hpp
//
// Copyright (c) 2016-2017 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <utility>
#if (__cplusplus < 201305L && _MSC_VER < 1900)
View sml.hpp
//
// Copyright (c) 2016-2017 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <utility>
#if (__cplusplus < 201305L && _MSC_VER < 1900)
View sml.hpp
//
// Copyright (c) 2016-2018 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#if (__cplusplus < 201305L && _MSC_VER < 1900)
#error "[Boost].SML requires C++14 support (Clang-3.4+, GCC-5.1+, MSVC-2015+)"
#else
View at_bench.cpp
This file has been truncated, but you can view the full file.
#include <type_traits>
template<typename...Ts>
struct list {};
template<int I>
struct generator;
template<>
View gcov-coveralls.sh
#!/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
View tricks_map.cpp
#include <type_traits>
template<class, class> struct pair { };
template<class... Ts>
struct map : Ts... { };
template<class T>
struct no_decay { using type = T; };
@krzysztof-jusiak
krzysztof-jusiak / hana_map.cpp
Created Jun 18, 2015
Hana - Map -> Get key
View hana_map.cpp
#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)
You can’t perform that action at this time.