Template specializations cruft in the Serializer

Issue #226 resolved
Samir Menon repo owner created an issue

It's a complex story. In a nutshell the Serializer template specializations are only compiled if the "extern <blah>" is missing.

We want the "extern <blah>" to be missing in the Serializer.cpp file. But we don't want it to be missing in any other file (so they don't re-specialize the template).

As such we need a #define above the Serializer.hpp header include in the Serializer.cpp file.

(As of now, this only causes problems with Printables, but we'll log it as a bug to remind us in case it causes problems elsewhere).

Comments (1)

  1. Log in to comment