Skip to content

Commit e96bc9e

Browse files
committed
Add VariantMap parse instantiations
1 parent c1d8fe7 commit e96bc9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/variant.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,11 @@ std::vector<std::string> VariantMap::get_keys() {
296296
return keys;
297297
}
298298

299+
// Explicit instantiations keep linkers happy in builds that still reference
300+
// VariantPath parsing entry points.
301+
template void VariantMap::parse_istream<true>(std::istream&);
302+
template void VariantMap::parse_istream<false>(std::istream&);
303+
template void VariantMap::parse<true>(const std::string&);
304+
template void VariantMap::parse<false>(const std::string&);
305+
299306
} // namespace Stockfish

0 commit comments

Comments
 (0)