Fix C++11 compatibility issue in topic.h

Resolves #483.