Commit fb56a9cd by Maarten L. Hekkelman

version bump

parent a4680f7d
...@@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.16) ...@@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.16)
# set the project name # set the project name
project( project(
libcifpp libcifpp
VERSION 7.0.1 VERSION 7.0.2
LANGUAGES CXX) LANGUAGES CXX)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Version 7.0.2
- Fix in testing error_code results.
Version 7.0.1 Version 7.0.1
- Various reconstruction fixes - Various reconstruction fixes
- category order in output fixed - category order in output fixed
......
...@@ -1263,7 +1263,7 @@ class category ...@@ -1263,7 +1263,7 @@ class category
{ {
} }
#pragma warning("NEED TO FIX THIS!") // TODO: NEED TO FIX THIS!
category *linked; category *linked;
const link_validator *v; const link_validator *v;
}; };
......
...@@ -109,6 +109,9 @@ bool datablock::validate_links() const ...@@ -109,6 +109,9 @@ bool datablock::validate_links() const
bool result = true; bool result = true;
for (auto &cat : *this) for (auto &cat : *this)
cat.update_links(*this);
for (auto &cat : *this)
result = cat.validate_links() and result; result = cat.validate_links() and result;
return result; return result;
...@@ -175,6 +178,11 @@ std::tuple<datablock::iterator, bool> datablock::emplace(std::string_view name) ...@@ -175,6 +178,11 @@ std::tuple<datablock::iterator, bool> datablock::emplace(std::string_view name)
} }
assert(i != end()); assert(i != end());
// links may have changed...
for (auto &cat : *this)
cat.update_links(*this);
return std::make_tuple(i, is_new); return std::make_tuple(i, is_new);
} }
......
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