thin-provisioning-tools/thin-provisioning
Dennis Schridde 1311447a94 [build] Include boost/optional/optional_io.hpp in thin-provisioning/emitter.h (#102)
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.
2018-06-13 08:42:30 +01:00
..
cache_stream.cc Spin-off syscall-related file operations (#78) 2017-04-29 18:51:52 +01:00
cache_stream.h Switch an auto_ptr to a unique_ptr 2017-03-13 13:20:52 +00:00
chunk_stream.cc [thin_show_dups] remove variable number of mems per chunks. 2015-09-04 13:48:02 +01:00
chunk_stream.h [thin_show_dups] tidy up reporting 2015-09-04 15:16:49 +01:00
commands.cc [man pages] Various updates. 2017-09-18 16:10:56 +01:00
commands.h Merge branch 'v0.7-devel' into 2016-03-08-cache-writeback 2016-03-08 16:00:31 +00:00
create_xml_data
device_tree.cc [thin] Add default constructor to struct device_details 2016-03-05 14:12:13 +08:00
device_tree.h [thin] Cleanup: move methods before data member declaration 2016-03-06 23:21:09 +08:00
emitter.h [build] Include boost/optional/optional_io.hpp in thin-provisioning/emitter.h (#102) 2018-06-13 08:42:30 +01:00
fixed_chunk_stream.cc [thin_show_dups] Support fractions of a pool block size 2015-09-08 17:09:41 +01:00
fixed_chunk_stream.h [thin_show_dups] Support fractions of a pool block size 2015-09-08 17:09:41 +01:00
human_readable_format.cc [thin_dump] human_readable emitter didn't print the metadata_snap. 2018-04-17 10:29:31 +01:00
human_readable_format.h
main.cc
mapping_tree.cc [thin] store the device id in single_mapping_tree_damage_visitor for error reporting 2016-06-20 00:30:25 +08:00
mapping_tree.h [thin] store the device id in single_mapping_tree_damage_visitor for error reporting 2016-06-20 00:30:25 +08:00
metadata_checker.cc Initial code drop for merging block_cache 2014-07-22 16:41:39 +01:00
metadata_checker.h
metadata_counter.cc [space map disk] tidy up: add const qualifier 2016-06-20 00:40:10 +08:00
metadata_counter.h [space map disk] tidy up: add const qualifier 2016-06-20 00:40:10 +08:00
metadata_dumper.cc [thin] store the device id in single_mapping_tree_damage_visitor for error reporting 2016-06-20 00:30:25 +08:00
metadata_dumper.h [thin_dump] --skip-mappings 2016-03-22 15:01:37 +00:00
metadata.cc [space-map-disk] fix the number of free blocks (#93) 2018-04-17 14:00:44 +01:00
metadata.h [thin_repair] fix regression in thin_repair 2016-02-16 14:08:43 +00:00
pool_stream.cc [thin_show_dups] tidy up reporting 2015-09-04 15:16:49 +01:00
pool_stream.h [thin_show_dups] tidy up reporting 2015-09-04 15:16:49 +01:00
restore_emitter.cc [thin] fix duplicated counting of mapped blocks in restore emitter 2016-08-10 23:40:48 +08:00
restore_emitter.h
rmap_visitor.cc
rmap_visitor.h
shared_library_emitter.cc [thin_dump] --format custom=<shared lib> 2016-03-24 13:59:08 +00:00
shared_library_emitter.h [thin_dump] --format custom=<shared lib> 2016-03-24 13:59:08 +00:00
static_library_emitter.cc remove debug print 2017-02-06 13:11:10 +03:00
superblock.cc Spin-off syscall-related file operations (#78) 2017-04-29 18:51:52 +01:00
superblock.h [thin_show_metadata] ncurses render 2016-02-26 12:50:17 +00:00
thin_check.cc Detect XML in *_check tools (#86) 2017-10-05 13:47:10 +01:00
thin_debug.cc
thin_delta.cc [all tools] Factor out open_bm() and open_tm. 2017-10-05 11:53:40 +01:00
thin_dump.cc [man pages] Various updates. 2017-09-18 16:10:56 +01:00
thin_generate_metadata.cc thin_generate_metadata 2016-07-15 11:23:07 +01:00
thin_ll_dump.cc [all tools] Factor out open_bm() and open_tm. 2017-10-05 11:53:40 +01:00
thin_ll_restore.cc [thin_ll_restore] check preallocation of output file 2016-08-10 23:41:25 +08:00
thin_ls.cc [thin] store the device id in single_mapping_tree_damage_visitor for error reporting 2016-06-20 00:30:25 +08:00
thin_metadata_size.cc [thin-metadata-size] -V was exiting with 1 2017-09-19 11:29:35 +01:00
thin_metadata_size.rb
thin_pool.cc [thin] fix duplicated counting of mapped blocks in restore emitter 2016-08-10 23:40:48 +08:00
thin_pool.h [thin] fix duplicated counting of mapped blocks in restore emitter 2016-08-10 23:40:48 +08:00
thin_repair.cc Merge branch '2016-07-07-improve-thin-repair-error-message' into v0.7-devel 2016-07-11 15:51:30 +01:00
thin_restore.cc [*_restore] if things go wrong wipe the superblock. 2017-09-28 14:39:24 +01:00
thin_rmap.cc [all tools] Factor out open_bm() and open_tm. 2017-10-05 11:53:40 +01:00
thin_scan.cc [all tools] Factor out open_bm() and open_tm. 2017-10-05 11:53:40 +01:00
thin_show_duplicates.cc [all tools] Factor out open_bm() and open_tm. 2017-10-05 11:53:40 +01:00
thin_show_metadata.cc [thin_show_metadata] ncurses render 2016-02-26 12:50:17 +00:00
thin_trim.cc Spin-off syscall-related file operations (#78) 2017-04-29 18:51:52 +01:00
variable_chunk_stream.cc [thin_show_dups] tidy up reporting 2015-09-04 15:16:49 +01:00
variable_chunk_stream.h [thin_show_dups] tidy up reporting 2015-09-04 15:16:49 +01:00
xml_format.cc [emitter] Preserve the flags and version entries in superblock 2016-02-27 15:20:02 +08:00
xml_format.h [*_restore] Add progress bar to cache_restore and era_restore. 2014-08-26 13:05:21 +01:00