2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-13 12:32:10 +00:00

Use constexpr lambdas whenever possible. Wow.

This commit is contained in:
Louis Dionne
2014-05-20 18:29:38 -04:00
parent fe1e29bfa9
commit b7440c5190
22 changed files with 219 additions and 280 deletions

View File

@@ -14,7 +14,7 @@ using namespace boost::hana;
template <int ...i>
constexpr auto array = std::array<int, sizeof...(i)>{{i...}};
auto array = std::array<int, sizeof...(i)>{{i...}};
int main() {
BOOST_HANA_STATIC_ASSERT(is_empty(array<>));