24,854
社区成员
发帖
与我相关
我的任务
分享
#include <boost/archive/text_iarchive.hpp>
typedef int uint32_t;
void f()
{
boost::uint32_t x; //ok
::uint32_t y; //ok
uint32_t z; //error C2872: "uint32_t" 不明确的符号
}
#if !BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x560) )
using namespace boost;
#endif
#if XXXXXX //如果存在 "boost\cstdint.hpp" 文件. include 之. ------------------------------>这个怎么写?
#include "boost\cstdint.hpp" //定义 boost::uint8_t 的文件.
#endif
#ifdef BOOST_CSTDINT_HPP // boost\cstdint.hpp 头文件的宏
using boost::int8_t;
using boost::uint8_t;
.....
#else
typedef signed char int8_t;
.....
#endif
namespace boost_132 { //按道理下边的 using 也只是引入到 boost_132 名字空间中了. 但就是不明白怎么跑到全局名字空间去了.
#if !BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x560) )
//using namespace boost; //注释这行.
#endif
namespace detail{
#if !BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x564) )
//using namespace boost::detail; //注释这行.
#endif
class sp_counted_base
{
//private:
#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x564) )
typedef boost::detail::lightweight_mutex mutex_type; //加boost::
#else
typedef boost::detail::lightweight_mutex mutex_type; //加boost::
#endif