一旦uppon时间我们曾经像升压代码:boost :: asio :: windows :: stream_handle in boost 1.46.1在哪里?
typedef BoostAsioPipe pipe;
#elif defined(BOOST_POSIX_API)
typedef boost::asio::posix::stream_descriptor pipe;
#elif defined(BOOST_WINDOWS_API)
typedef boost::asio::windows::stream_handle pipe;
#else
# error "Unsupported platform."
#endif
但现在,例如在Windows编译器tralls我们stream_handle不升压的一部分:: ASIO ...所以它在哪里呢? (并且是stream_descriptor在同一个地方,或者它也移动了)?
更新
愚蠢的我:有类似boost::asio::windows::pipe
,但现在编译器会发出C3083
#elif defined(BOOST_WINDOWS_API)
typedef boost::asio::windows::pipe pipe;
#else
您确定它消失吗?根据该文件,它仍然存在:http://www.boost.org/doc/libs/1_46_1/boost/asio/windows/stream_handle.hpp – Dinaiz 2011-05-04 02:37:20
它仍然是提升的一部分,也许一些标题改变了,所以你现在有明确包含来使用它。至少在我的代码示例中没有看到包含。 –
Byron
2011-05-04 22:39:16