根据the documentation,以下内容应编译:
boost::iostreams::filtering_ostream out;
out.sync();
然而神秘却没有。我的vs2010编译器大喊:
error C2039: 'sync' : is not a member of 'boost::iostreams::filtering_stream<Mode>'
with
[
Mode=boost::iostreams::output
]
我正在使用boost 1.50.0但是boost.iostreams自升级1.46.0后没有改变