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> | |
#include<iostream> | |
namespace hana = boost::hana; | |
template<typename T> | |
class A | |
{ | |
static constexpr const char* t = hana::to<const char*>(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
// | |
// Copyright Jason Rice 2016 | |
// 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) | |
// | |
#ifndef NBDL_DETAILS_PARTIAL_REF_HPP | |
#define NBDL_DETAILS_PARTIAL_REF_HPP | |
#include<boost/hana.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
#include<boost/hana.hpp> | |
#include<boost/hana/experimental/types.hpp> | |
namespace hana = boost::hana; | |
namespace hanax = boost::hana::experimental; | |
int main() { | |
{ | |
constexpr auto xs = hanax::types< | |
hana::int_<1>, |
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/filter.hpp> | |
#include<utility> | |
#include "hpesoj_utility.hpp" | |
namespace hana = boost::hana; | |
struct is_even_t { | |
template <int i> | |
struct apply { |
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
set(LLVM_LINK_COMPONENTS support) | |
add_clang_executable(my_refactor | |
my_refactor.cpp | |
) | |
target_link_libraries(my_refactor | |
clangTooling | |
clangBasic | |
clangASTMatchers | |
) |
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<iostream> | |
struct tag1 { }; | |
struct tag2 { }; | |
struct tag3 { }; | |
struct tag4 { }; | |
template <typename Tag> | |
struct foo_impl { }; |
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; | |
struct a_tag { }; | |
struct b_tag { }; | |
template <typename T> | |
constexpr auto get(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
template <int v> | |
struct int_c { static constexpr int value = v; }; | |
struct a_tag { }; | |
struct b_tag { }; | |
template <bool cond> | |
struct c_tag | |
{ | |
static_assert(cond); | |
}; |
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 <string> | |
#include <type_traits> | |
#include <utility> | |
struct my_empty { }; | |
using storage = std::aligned_union_t<sizeof(my_empty), my_empty, std::string>; | |
int main() | |
{ |
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
{ | |
"name": "pivotal-tools", | |
"version": "1.0.0", | |
"description": "", | |
"main": "weekly_plan.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Jason Rice", | |
"license": "ISC", |