Code__BLocks is the IDE and not the compiler.
Which compiler, OS and version of C::B dou you use ?
What's the exact error-message you get ?
If it's something like error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
you might try to use the template keyword in a c- and not c++-file.
Be aware, that a file with the ending "c" is treated as c-file. If that's the case, rename your file to cpp close C::B and restart it.