An obvious error since Atlas/Message/Encoder.h doesn't even exist (any more) and bridge is passed by reference not by pointer to the Encoder class. Allthough it's documented I guess no-one ever used Layer.h.
Layer.cpp is no longer included in the build or the distribution of Atlas-C++. The fact that the header is still in there was an oversight. Thanks for alerting me to the issue.