Commit c13ee92f by Maarten L. Hekkelman

on windows

parent 0ca04bed
...@@ -27,7 +27,7 @@ if(MSVC) ...@@ -27,7 +27,7 @@ if(MSVC)
endif() endif()
# Build shared libraries by default (not my cup of tea, but hey) # Build shared libraries by default (not my cup of tea, but hey)
option(BUILD_SHARED_LIBS "Build a shared library instead of a static one" ON) option(BUILD_SHARED_LIBS "Build a shared library instead of a static one" OFF)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
# set(CMAKE_DEBUG_POSTFIX d) # set(CMAKE_DEBUG_POSTFIX d)
......
...@@ -1426,17 +1426,19 @@ _cat_3.num ...@@ -1426,17 +1426,19 @@ _cat_3.num
BOOST_CHECK(cat3.size() == 2); BOOST_CHECK(cat3.size() == 2);
int id, num; {
std::string name; int id, num;
cif::tie(id, name, num) = cat3.front().get("id", "name", "num"); std::string name;
BOOST_CHECK(id == 1); cif::tie(id, name, num) = cat3.front().get("id", "name", "num");
BOOST_CHECK(num == 1); BOOST_CHECK(id == 1);
BOOST_CHECK(name == "aapje"); BOOST_CHECK(num == 1);
BOOST_CHECK(name == "aapje");
cif::tie(id, name, num) = cat3.back().get("id", "name", "num");
BOOST_CHECK(id == 2); cif::tie(id, name, num) = cat3.back().get("id", "name", "num");
BOOST_CHECK(num == 2); BOOST_CHECK(id == 2);
BOOST_CHECK(name == "aap"); BOOST_CHECK(num == 2);
BOOST_CHECK(name == "aap");
}
int i = 0; int i = 0;
for (const auto &[id, name, num, desc]: cat2.rows<int,std::string,int,std::string>({"id", "name", "num", "desc"})) for (const auto &[id, name, num, desc]: cat2.rows<int,std::string,int,std::string>({"id", "name", "num", "desc"}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment