1311447a94
This fixes following build failure with Boost 1.67.0: ``` In file included from /usr/include/boost/optional/optional.hpp:33, from /usr/include/boost/optional.hpp:15, from ./thin-provisioning/emitter.h:23, from contrib/thin_sexp_emitter.cc:2: /usr/include/boost/optional/optional.hpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& boost::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::optional_detail::optional_tag&) [with CharType = char; CharTrait = std::char_traits<char>]’: ./base/indented_stream.h:31:9: required from ‘{anonymous}::indented_stream& {anonymous}::indented_stream::operator<<(const T&) [with T = boost::optional<unsigned int>]’ contrib/thin_sexp_emitter.cc:105:29: required from ‘void {anonymous}::sexp_emitter::kv(const char*, const T&) [with T = boost::optional<unsigned int>]’ contrib/thin_sexp_emitter.cc:29:21: required from here /usr/include/boost/optional/optional.hpp:1481:3: error: static assertion failed: If you want to output boost::optional, include header <boost/optional/optional_io.hpp> BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to output boost::optional, include header <boost/optional/optional_io.hpp>"); ^~~~~~~~~~~~~~~~~~~~~~~ make: *** [contrib/Makefile:15: contrib/thin_sexp_emitter.o] Error 1 ``` boost/optional/optional_io.hpp exists since at least Boost 1.34.0, so it is safe to include in older versions, too. |
||
---|---|---|
.. | ||
cache_stream.cc | ||
cache_stream.h | ||
chunk_stream.cc | ||
chunk_stream.h | ||
commands.cc | ||
commands.h | ||
create_xml_data | ||
device_tree.cc | ||
device_tree.h | ||
emitter.h | ||
fixed_chunk_stream.cc | ||
fixed_chunk_stream.h | ||
human_readable_format.cc | ||
human_readable_format.h | ||
main.cc | ||
mapping_tree.cc | ||
mapping_tree.h | ||
metadata_checker.cc | ||
metadata_checker.h | ||
metadata_counter.cc | ||
metadata_counter.h | ||
metadata_dumper.cc | ||
metadata_dumper.h | ||
metadata.cc | ||
metadata.h | ||
pool_stream.cc | ||
pool_stream.h | ||
restore_emitter.cc | ||
restore_emitter.h | ||
rmap_visitor.cc | ||
rmap_visitor.h | ||
shared_library_emitter.cc | ||
shared_library_emitter.h | ||
static_library_emitter.cc | ||
superblock.cc | ||
superblock.h | ||
thin_check.cc | ||
thin_debug.cc | ||
thin_delta.cc | ||
thin_dump.cc | ||
thin_generate_metadata.cc | ||
thin_ll_dump.cc | ||
thin_ll_restore.cc | ||
thin_ls.cc | ||
thin_metadata_size.cc | ||
thin_metadata_size.rb | ||
thin_pool.cc | ||
thin_pool.h | ||
thin_repair.cc | ||
thin_restore.cc | ||
thin_rmap.cc | ||
thin_scan.cc | ||
thin_show_duplicates.cc | ||
thin_show_metadata.cc | ||
thin_trim.cc | ||
variable_chunk_stream.cc | ||
variable_chunk_stream.h | ||
xml_format.cc | ||
xml_format.h |