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,6 +1426,7 @@ _cat_3.num ...@@ -1426,6 +1426,7 @@ _cat_3.num
BOOST_CHECK(cat3.size() == 2); BOOST_CHECK(cat3.size() == 2);
{
int id, num; int id, num;
std::string name; std::string name;
cif::tie(id, name, num) = cat3.front().get("id", "name", "num"); cif::tie(id, name, num) = cat3.front().get("id", "name", "num");
...@@ -1437,6 +1438,7 @@ _cat_3.num ...@@ -1437,6 +1438,7 @@ _cat_3.num
BOOST_CHECK(id == 2); BOOST_CHECK(id == 2);
BOOST_CHECK(num == 2); BOOST_CHECK(num == 2);
BOOST_CHECK(name == "aap"); 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