Commit fc14a655 by Maarten L. Hekkelman

attempt 2 to build on macOS

parent bbd1e27c
...@@ -239,7 +239,7 @@ void checkAtomRecords(datablock &db) ...@@ -239,7 +239,7 @@ void checkAtomRecords(datablock &db)
// Rewrite the coordinates and other fields that look better in a fixed format // Rewrite the coordinates and other fields that look better in a fixed format
// Be careful not to nuke invalidly formatted data here // Be careful not to nuke invalidly formatted data here
for (auto [tag, prec] : std::initializer_list<std::tuple<std::string_view,std::string::size_type>>{ for (auto [tag, prec] : std::vector<std::tuple<std::string_view,std::string::size_type>>{
{ "cartn_x", 3 }, { "cartn_x", 3 },
{ "cartn_y", 3 }, { "cartn_y", 3 },
{ "cartn_z", 3 }, { "cartn_z", 3 },
...@@ -260,7 +260,7 @@ void checkAtomRecords(datablock &db) ...@@ -260,7 +260,7 @@ void checkAtomRecords(datablock &db)
char b[12]; char b[12];
if (auto [ptr, ec] = cif::to_chars(b, b + sizeof(b), v, cif::chars_format::fixed, prec); ec == std::errc()) if (auto [ptr, ec] = cif::to_chars(b, b + sizeof(b), v, cif::chars_format::fixed, prec); ec == std::errc())
row.assign(tag, {b, ptr}, false, false); row.assign(tag, {b, static_cast<std::string::size_type>(ptr - b)}, false, false);
} }
} }
} }
......
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