When compiling SSSCommander Michael and I noticed a strange error on my G5 (10.3.9 w/ gcc 4.0)
Cluster.cpp: In member function 'BambooLib::ParseMsg* SSSObjects::Cluster::send_query(BambooLib::BuildMsg&, SSSObjects::Cluster::address)':
Cluster.cpp:190: error: '<anonymous enum>' is/uses anonymous type
Cluster.cpp:190: error: trying to instantiate 'template<class T> template<class To> bool SSSObjects::operator==(SSSObjects::value&, To&)'
We fixed this by changing the SUCCESS and FAILURE anonymous enums to a preprocessor macro that expands to true or false. While any method that used the old anonymous enums as return values will still compile without errors, the return value should be changed to a bool for completeness purposes.
Here's the old source file with the anonymous enum definitions
source:libbamboo/trunk/source/libbamboo/define.h@88
And here's the new one with the preprocessor macros
source:libbamboo/trunk/source/libbamboo/define.h@255