Programming in C++ may or may not be "more secure". For some value of 'secure', anyway.
However, this is about programming and sanity.
Boost is a case in point. It consists mostly of Deep Template Magic. Debugging a program that uses Boost is an exercise in hair-pulling, assuming that you have any left.