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
/***** maptuple.cpp *****/ | |
#include <tuple> | |
#include <iostream> | |
#include <functional> | |
template<int ...S> struct indexes{}; | |
template<int N, int ...S> struct generate_indexes : generate_indexes<N - 1, N - 1, S...> {}; |
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
/***** maptuple.cpp *****/ | |
#include <tuple> | |
#include <iostream> | |
#include <functional> | |
template<int ...S> struct indexes{}; | |
template<int N, int ...S> struct generate_indexes : generate_indexes<N - 1, N - 1, S...> {}; |
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 <iostream> | |
struct A {}; | |
std::string to_string(const A&) | |
{ | |
return "I am a A!"; | |
} | |
// Type B with a serialize method. |
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 <iostream> | |
struct A {}; | |
std::string to_string(const A&) | |
{ | |
return "I am a A!"; | |
} | |
// Type B with a serialize method. |
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 <iostream> | |
struct A {}; | |
std::string to_string(const A&) | |
{ | |
return "I am a A!"; | |
} | |
// Type B with a serialize method. |
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 <boost/hana.hpp> | |
#include <iostream> | |
#include <type_traits> | |
struct A {}; | |
std::string to_string(const A&) | |
{ | |
return "I am a A!"; | |
} |
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 <iostream> | |
#include <string> | |
struct DefaultSlotKey; | |
template <class Type, class Key = DefaultSlotKey> | |
class Slot | |
{ | |
protected: | |
Type& doGet() |
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 <iostream> | |
#include <memory> | |
#include <string> | |
#include "repository.hpp" | |
// Incomplete types used as compile-time keys. | |
struct Key1; | |
struct Key2; |
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
if [ -z "$BH_ENV" ]; | |
then | |
echo "Variable BH_ENV must be set and be the name of a folder in /opt"; | |
else | |
echo "Configuring compiler environment."; | |
INSTALL_DIR=/opt/${BH_ENV} | |
THIRD_PARTY_DIR=${INSTALL_DIR}/thirdparty | |
export GCC_ENV_DIR=${INSTALL_DIR} | |
export GCC_BIN_DIR=${GCC_ENV_DIR}/bin |
OlderNewer