You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document self-contained headers for inline doctest tests on MSVC #64
Document that each translation unit containing inline tests must include the
headers needed by its assertions and diagnostic formatting. The generated test
runner's includes cannot supply definitions to other translation units.
Observed with cpp-library 6.2.0
While migrating cel-runtime's private tests from standalone doctest executables
into implementation files, Windows/MSVC compilation failed when string and std::string_view assertion diagnostics instantiated stream insertion with an
incomplete std::basic_ostream.
The standalone doctest implementation-with-main path had supplied stream
definitions transitively. Inline tests use doctest declarations in separate
translation units, so that incidental dependency disappeared. Adding <ostream>
to one affected translation unit did not fix the other: both value_type.cpp
and callable.cpp needed their own include.
The fix keeps the include inside the testing selector:
Activity