Closed djarek closed 5 years ago
Well, this is kind of tricky, because pmd_opts_
is not present if deflateSupported==false
. But with explicit instantiation, the compiler has to emit both functions just in case. One solution is to just put pmd_opts_
in the declaration even if it isn't needed. I don't know what else to do. @glenfe ?
@vinniefalco I believe that if open_pmd
used SFINAE, this problem would go away, because the compiler wouldn't try to instantiate both.
it has to instantiate both, how does it know ahead of time which one it will need?
This will help people reduce their build times by putting the definitions in a .cpp file instead of the .hpp.
https://wandbox.org/permlink/NhmB6f9y3wanpVdz