d:\boost\boost\beast\core\detail\ostream.hpp(263): error C2955: 'boost::beast::detail::ostream_helper': 使用类模板需要模板参数列表
编译示例项目时:http_server_small.cpp(来自“beast”)
提升\野兽\核心\细节\ostream.hpp:
template<class DynamicBuffer, class CharT, class Traits>
ostream_helper<DynamicBuffer, CharT, Traits, true>::
ostream_helper(
ostream_helper&& other)
: std::basic_ostream<CharT, Traits>(&osb_)
, osb_(std::move(other.osb_))
{
}
Boost 版本 1.67.00,在 Visual Studio v171 (2017)、x64 下编译
它看起来像是 boost/beast lib 中的错误,但在 lib 的发布版本中看到编译错误很奇怪。(我不是lib的作者,我只是想使用它)。
也许我缺少一些编译选项或标志?有没有人弄清楚问题是什么以及如何解决?