mcap
mcap copied to clipboard
C++: types.inl make functions inline
Changelog
Make functions defined in types.inl
inline.
Description
This is needed to avoid linker multiple definition errors.
How to reproduce:
- Create a library with two .cpp files
- One file includes
reader.hpp
and onewriter.hpp
and both need to defineMCAP_IMPLEMENTATION
- File
types.inl
is included by both compilation units and when linker creates the libraries, the functions fromtypes.inl
are defined twice.