Commit d5d6f3a7 by Maarten L. Hekkelman

Merge branch 'newer-cmake-files' of github.com:PDB-REDO/libcifpp into newer-cmake-files

parents 9d2f2b30 c13ee92f
......@@ -27,7 +27,7 @@ if(MSVC)
endif()
# 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_DEBUG_POSTFIX d)
......
......@@ -1426,6 +1426,7 @@ _cat_3.num
BOOST_CHECK(cat3.size() == 2);
{
int id, num;
std::string name;
cif::tie(id, name, num) = cat3.front().get("id", "name", "num");
......@@ -1437,6 +1438,7 @@ _cat_3.num
BOOST_CHECK(id == 2);
BOOST_CHECK(num == 2);
BOOST_CHECK(name == "aap");
}
int i = 0;
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