I saw C++ code like this:
if(bool(function_pointer))
Where function_pointer
is
typedef boost::function<bool (const int&)> Checker;
I'm wondering what's the difference between
bool(function_pointer)
and
(bool)function_pointer
I saw C++ code like this:
if(bool(function_pointer))
Where function_pointer
is
typedef boost::function<bool (const int&)> Checker;
I'm wondering what's the difference between
bool(function_pointer)
and
(bool)function_pointer