[Serialization] BOOST_CLASS_EXPORT_GUID() destroying namespace
Hi, When i put the script BOOST_CLASS_EXPORT_GUID() into my code directly after the definition of my base class and derived classes, my namespace seems to be broken. The classes are defined in my namespace "water". When i put the script into the code, it fails to find boost::bind in the source file! THe compiler searches for bind in the namespace "water::boost". But without the script it compiles fine! Someone got a clue whats wrong? Kind Regards Manuel Jung
Macros should invoked outside of any namespace. Robert Ramey Manuel Jung wrote:
Hi,
When i put the script BOOST_CLASS_EXPORT_GUID() into my code directly after the definition of my base class and derived classes, my namespace seems to be broken. The classes are defined in my namespace "water". When i put the script into the code, it fails to find boost::bind in the source file! THe compiler searches for bind in the namespace "water::boost". But without the script it compiles fine! Someone got a clue whats wrong? Kind Regards Manuel Jung
Ha! Okay Thanks! That makes sense^^ Im kinda stupid oO Regard Manuel Jung
Macros should invoked outside of any namespace.
Robert Ramey
Manuel Jung wrote:
Hi,
When i put the script BOOST_CLASS_EXPORT_GUID() into my code directly after the definition of my base class and derived classes, my namespace seems to be broken. The classes are defined in my namespace "water". When i put the script into the code, it fails to find boost::bind in the source file! THe compiler searches for bind in the namespace "water::boost". But without the script it compiles fine! Someone got a clue whats wrong? Kind Regards Manuel Jung
participants (2)
-
Manuel Jung
-
Robert Ramey