2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-26 16:52:18 +00:00

Reorganize and rename the adapted/ folder.

This commit is contained in:
Louis Dionne
2014-07-07 12:29:30 -04:00
parent 2d6bc3cd79
commit 5a2de2073e
57 changed files with 85 additions and 82 deletions

29
test/ext/std/list/bug.cpp Normal file
View File

@@ -0,0 +1,29 @@
/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/ext/std/list.hpp>
#include <boost/hana/integral.hpp>
#include <cassert>
#include <list>
using namespace boost::hana;
int main() {
using std_list = std::list<int>;
assert(at(int_<2>, std_list{0, 1, 2, 3}) == 2);
#if 0
assert(at(2, std_list{0, 1, 2, 3}) == 2);
assert(last(std_list{0, 1, 2}) == 2);
assert(length(std_list{}) == 0);
assert(length(std_list{1}) == 1);
assert(length(std_list{1, 2}) == 2);
#endif
}