hi
i finally got to test it again, but it doesn't look like much changed:
g++ -fPIC -ggdb -I/home/wrt/proggn/RakNet/speex-1.1.11.1/libspeex/ -I/home/wrt/proggn/RakNet/Include -I/home/wrt/proggn/RakNet/Include/RakVoice -w -c *.cpp
In file included from BitStream.cpp:17:
/home/wrt/proggn/RakNet/Include/BitStream.h:114: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:115: error: `Write' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:119: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:120: error: `Write' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:125: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:126: error: `WriteDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:136: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:137: error: `WriteCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:140: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:141: error: `WriteCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:204: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:205: error: `ReadDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:219: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:220: error: `Read' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:224: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:225: error: `Read' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:228: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:229: error: `ReadDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:233: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:234: error: `ReadCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:703: error: specialization of bool RakNet::BitStream::Read(templateType&) [with templateType = bool] after instantiation
what version of gcc did you test it with? I have 3.4.4, 3.4.5 and 4.0.3 and all of them have those problems.
also i've found one more way of getting gcc to shut up, i've written the type of the specialization in the template brackets like this:
/// Write a bool to a bitstream
/// \param[in] var The value to write
template <bool>
void Write(bool var);
however, this doesn't seam to work for structs, so i get a error with those two lines:
/home/wrt/proggn/RakNet/Include/BitStream.h:119: error: `struct PlayerID' is not a valid type for a template constant parameter
/home/wrt/proggn/RakNet/Include/BitStream.h:204: error: `struct PlayerID' is not a valid type for a template constant parameter
also i don't know what this that i did means

But maybe my random hacking actually helps someone

cu wrt