摘要:
cast between different pointer to member representations, compiler may generate incorrect codeAn incorrect cast was detected.C4407 can be generated because of compiler conformance work that was done in Visual C++ 2005. Pointer-to-member now requires a qualified name and the address-of operator (& 阅读全文
摘要:
如果大家用的是VC2010及以上版本的编译器的话,可以直接使用C++ 0x标准中的static_assert,这些编译器都是支持这个新标准的。而我好奇的是boost是怎么实现这个的,非常简单,就几行代码。#define BOOST_STATIC_ASSERT( B ) \ typedef ::boost::static_assert_test)>\ BOOST_JOIN(boost_static_assert_typedef_, __COUNTER__)// HP aCC cannot deal with missing names for template value para... 阅读全文