M
Matthias Kaeppler
Hi,
why can I use assert from <cassert> without resolving the std::
namespace? E.g.:
#include <cassert>
int main()
{
assert(true); // shouldn't this be: std::assert(true) ?
}
This compiles. I thought in the <c****> headers the macros are undef'ed
and replaced in favor of inline functions which reside in the std
namespace? In this case my program shouldn't compile. I'm using g++ 3.3.5.
why can I use assert from <cassert> without resolving the std::
namespace? E.g.:
#include <cassert>
int main()
{
assert(true); // shouldn't this be: std::assert(true) ?
}
This compiles. I thought in the <c****> headers the macros are undef'ed
and replaced in favor of inline functions which reside in the std
namespace? In this case my program shouldn't compile. I'm using g++ 3.3.5.