Skip to content

Instantly share code, notes, and snippets.

@hia3
hia3 / test.cpp
Created April 7, 2017 15:29
hana asan crash
#include <boost/hana/tuple.hpp>
template <typename T>
struct tt
{
};
int main()
{
const tt<int> xn1; const tt<char> xn2;
#include <boost/hana/set.hpp>
#include <boost/hana/tuple.hpp>
#include <boost/hana/type.hpp>
int main()
{
boost::hana::tuple<boost::hana::type<int>, boost::hana::type<char>> t;
auto set_types = boost::hana::to_set(t);
// runtime error: constructor call on address 0x003fde6ff8a2 with insufficient space for an object of type
@hia3
hia3 / keymap.c
Created July 20, 2016 02:53
Workman, tap dance, hold=repeat, no delay
#include "ergodox_ez.h"
#include "debug.h"
#include "action_layer.h"
#define BASE 0 // default layer
#define SYMB 1 // symbols
#define MDIA 2 // media keys
#define TD_A 0 // use TD(TD_A)
#define TD_S 1 // use TD(TD_B)