T
Travis
I can't figure this out. So in a templated class of mine I have the
following.
namespace menutree
{
static bool debug = false;
}
And in various parts of the code I have statements like.
if (menutree::debug) { std::cout << "here" << std::endl;
Everything compiles but I get the warning
"warning: `bool menutree::debug' defined but not used"
Can someone shed some light on this?
Thanks!
following.
namespace menutree
{
static bool debug = false;
}
And in various parts of the code I have statements like.
if (menutree::debug) { std::cout << "here" << std::endl;
Everything compiles but I get the warning
"warning: `bool menutree::debug' defined but not used"
Can someone shed some light on this?
Thanks!