This file contains 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 Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
cmake_minimum_required(VERSION 3.2) | |
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | |
include(metabench) |
This file contains 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 Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
cmake_minimum_required(VERSION 3.2) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | |
include(metabench) | |
set(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
This file contains 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
build/ |
This file contains 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
commit 4d6f53adf9ddb41ae6b477a39b8b609159c74cf2 | |
Author: Louis Dionne <ldionne.2@gmail.com> | |
Date: Tue May 24 15:36:02 2016 -0700 | |
[array] Implement P0107 improving the support for constexpr in std::array | |
diff --git a/include/array b/include/array | |
index 719286d..28d093d 100644 | |
--- a/include/array | |
+++ b/include/array |
This file contains 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 Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
set(datasets) | |
add_dataset(datasets hetero make hana string1 hana.string.cpp.erb 4 "(0..50).step(10).to_a + (100..300).step(50).to_a" "which\;1") | |
add_dataset(datasets hetero make hana string2 hana.string.cpp.erb 4 "(0..50).step(10).to_a + (100..300).step(50).to_a" "which\;2") | |
add_chart(hetero make DATASETS ${datasets}) |
This file contains 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
// | |
// A demo of value-syntax reflection built on top of the current reflection proposal, | |
// as shown to the Reflection SG at the Issaquah meeting in 2016. | |
// | |
// Author: Louis Dionne | |
// | |
// ~/code/llvm/build/prefix/bin/clang++ -I ~/code/hana/include -isystem ~/code/llvm/build/prefix/lib/clang/4.0.0/include -I ~/code/llvm/tools/clang/reflection -Xclang -freflection -std=c++1z code/worksheet.cpp |
This file contains 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
void foo() { | |
for (auto x : tuple) { | |
if (runtime-bool) // ill formed | |
constexpr break; | |
} | |
} | |
void foo() { | |
for (auto x : tuple) { | |
if constexpr (compile-time-bool) // yes! |
This file contains 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
# Compute the installation prefix relative to this file. This file is expected | |
# to be located at ${PREFIX}/lib/cmake/Hana/HanaConfig.cmake, so this simply | |
# computes the installation's ${PREFIX}. | |
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) | |
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | |
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | |
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | |
if(_IMPORT_PREFIX STREQUAL "/") | |
set(_IMPORT_PREFIX "") | |
endif() |
This file contains 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 <cstddef> | |
#include <type_traits> | |
#include <utility> | |
////////////////////////////////////////////////////////////////////////////// | |
// Utilities required to make the bug report self-contained. | |
// | |
// Basically, this defines a very minimal tuple<> structure along with a | |
// function (operator+) which allows appending an element to a tuple. We |
This file contains 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/sh | |
# Pre-push hook making sure there is no merge commit in the set of commits | |
# being pushed upstream. This hooks works by walking the set of commits being | |
# pushed and making sure that none of them has two parents or more (which is | |
# the definition of a merge commit). | |
# | |
# This hook is called with the following parameters: | |
# | |
# ${1} -- Name of the remote to which the push is being done |