-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from brunocodutra/develop
Bump to 0.3.2
- Loading branch information
Showing
105 changed files
with
2,883 additions
and
2,933 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright Bruno Dutra 2015-2016 | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt | ||
|
||
#include <metal.hpp> | ||
|
||
#include <tuple> | ||
|
||
#include "example.hpp" | ||
|
||
/// [SFINAE] | ||
template<typename num> | ||
constexpr metal::if_<metal::is_number<num>, metal::int_> make() { | ||
return num::value; | ||
} // instantiated for Numbers only | ||
|
||
template<typename seq> | ||
constexpr metal::apply<metal::lambda<std::tuple>, seq> make() { | ||
return {}; | ||
} // instantiated for Lists only | ||
|
||
static_assert(make<metal::number<42>>() == 42, ""); | ||
static_assert(make<metal::list<int, char>>() == std::tuple<int, char>{}, ""); | ||
/// [SFINAE] | ||
|
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
Oops, something went wrong.