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:
29
test/ext/std/list/bug.cpp
Normal file
29
test/ext/std/list/bug.cpp
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user