1 | In file included from test.cpp:1:
|
---|
2 | /usr/include/boost/iostreams/device/file_descriptor.hpp:276:12: error: functional-style cast from 'int const' to 'detail::path' is not allowed
|
---|
3 | { open(detail::path(path), mode); }
|
---|
4 | ^~~~~~~~~~~~~
|
---|
5 | In file included from test.cpp:2:
|
---|
6 | /usr/include/boost/iostreams/stream.hpp:128:5: note: in instantiation of function template specialization 'boost::iostreams::file_descriptor_sink::file_descriptor_sink<int>' requested here
|
---|
7 | BOOST_IOSTREAMS_FORWARD( stream, open_impl, Device,
|
---|
8 | ^
|
---|
9 | In file included from test.cpp:2:
|
---|
10 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
11 | /usr/include/boost/iostreams/detail/forward.hpp:56:5: note: instantiated from:
|
---|
12 | BOOST_PP_REPEAT_FROM_TO( \
|
---|
13 | ^
|
---|
14 | In file included from test.cpp:2:
|
---|
15 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
16 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:24:
|
---|
17 | /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp:34:34: note: instantiated from:
|
---|
18 | # define BOOST_PP_REPEAT_FROM_TO BOOST_PP_CAT(BOOST_PP_REPEAT_FROM_TO_, BOOST_PP_AUTO_REC(BOOST_PP_REPEAT_P, 4))
|
---|
19 | ^
|
---|
20 | In file included from test.cpp:1:
|
---|
21 | In file included from /usr/include/boost/iostreams/device/file_descriptor.hpp:26:
|
---|
22 | In file included from /usr/include/boost/iostreams/detail/path.hpp:31:
|
---|
23 | In file included from /usr/include/boost/type_traits/is_same.hpp:31:
|
---|
24 | In file included from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14:
|
---|
25 | In file included from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10:
|
---|
26 | In file included from /usr/include/boost/mpl/int.hpp:20:
|
---|
27 | In file included from /usr/include/boost/mpl/aux_/integral_wrapper.hpp:22:
|
---|
28 | /usr/include/boost/preprocessor/cat.hpp:22:32: note: instantiated from:
|
---|
29 | # define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
|
---|
30 | ^
|
---|
31 | note: (skipping 14 contexts in backtrace; use -fmacro-backtrace-limit=0 to see all)
|
---|
32 | In file included from test.cpp:2:
|
---|
33 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
34 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:22:
|
---|
35 | In file included from /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp:19:
|
---|
36 | /usr/include/boost/preprocessor/tuple/elem.hpp:20:53: note: instantiated from:
|
---|
37 | # define BOOST_PP_TUPLE_ELEM(size, index, tuple) BOOST_PP_TUPLE_ELEM_I(size, index, tuple)
|
---|
38 | ^
|
---|
39 | <scratch space>:110:1: note: instantiated from:
|
---|
40 | BOOST_PP_TUPLE_ELEM_3_2
|
---|
41 | ^
|
---|
42 | In file included from test.cpp:2:
|
---|
43 | /usr/include/boost/iostreams/stream.hpp:128:5: note: instantiated from:
|
---|
44 | BOOST_IOSTREAMS_FORWARD( stream, open_impl, Device,
|
---|
45 | ^
|
---|
46 | In file included from test.cpp:2:
|
---|
47 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
48 | /usr/include/boost/iostreams/detail/forward.hpp:56:5: note: instantiated from:
|
---|
49 | BOOST_PP_REPEAT_FROM_TO( \
|
---|
50 | ^
|
---|
51 | In file included from test.cpp:2:
|
---|
52 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
53 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:24:
|
---|
54 | /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp:34:34: note: instantiated from:
|
---|
55 | # define BOOST_PP_REPEAT_FROM_TO BOOST_PP_CAT(BOOST_PP_REPEAT_FROM_TO_, BOOST_PP_AUTO_REC(BOOST_PP_REPEAT_P, 4))
|
---|
56 | ^
|
---|
57 | In file included from test.cpp:1:
|
---|
58 | In file included from /usr/include/boost/iostreams/device/file_descriptor.hpp:26:
|
---|
59 | In file included from /usr/include/boost/iostreams/detail/path.hpp:31:
|
---|
60 | In file included from /usr/include/boost/type_traits/is_same.hpp:31:
|
---|
61 | In file included from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14:
|
---|
62 | In file included from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10:
|
---|
63 | In file included from /usr/include/boost/mpl/int.hpp:20:
|
---|
64 | In file included from /usr/include/boost/mpl/aux_/integral_wrapper.hpp:22:
|
---|
65 | /usr/include/boost/preprocessor/cat.hpp:22:32: note: instantiated from:
|
---|
66 | # define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
|
---|
67 | ^
|
---|
68 | note: (skipping 14 contexts in backtrace; use -fmacro-backtrace-limit=0 to see all)
|
---|
69 | In file included from test.cpp:2:
|
---|
70 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
71 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:22:
|
---|
72 | In file included from /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp:19:
|
---|
73 | /usr/include/boost/preprocessor/tuple/elem.hpp:20:53: note: instantiated from:
|
---|
74 | # define BOOST_PP_TUPLE_ELEM(size, index, tuple) BOOST_PP_TUPLE_ELEM_I(size, index, tuple)
|
---|
75 | ^
|
---|
76 | In file included from test.cpp:2:
|
---|
77 | /usr/include/boost/iostreams/stream.hpp:128:5: note: instantiated from:
|
---|
78 | BOOST_IOSTREAMS_FORWARD( stream, open_impl, Device,
|
---|
79 | ^
|
---|
80 | In file included from test.cpp:2:
|
---|
81 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
82 | /usr/include/boost/iostreams/detail/forward.hpp:56:5: note: instantiated from:
|
---|
83 | BOOST_PP_REPEAT_FROM_TO( \
|
---|
84 | ^
|
---|
85 | In file included from test.cpp:2:
|
---|
86 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
87 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:24:
|
---|
88 | /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp:34:34: note: instantiated from:
|
---|
89 | # define BOOST_PP_REPEAT_FROM_TO BOOST_PP_CAT(BOOST_PP_REPEAT_FROM_TO_, BOOST_PP_AUTO_REC(BOOST_PP_REPEAT_P, 4))
|
---|
90 | ^
|
---|
91 | In file included from test.cpp:1:
|
---|
92 | In file included from /usr/include/boost/iostreams/device/file_descriptor.hpp:26:
|
---|
93 | In file included from /usr/include/boost/iostreams/detail/path.hpp:31:
|
---|
94 | In file included from /usr/include/boost/type_traits/is_same.hpp:31:
|
---|
95 | In file included from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14:
|
---|
96 | In file included from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10:
|
---|
97 | In file included from /usr/include/boost/mpl/int.hpp:20:
|
---|
98 | In file included from /usr/include/boost/mpl/aux_/integral_wrapper.hpp:22:
|
---|
99 | /usr/include/boost/preprocessor/cat.hpp:22:32: note: instantiated from:
|
---|
100 | # define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
|
---|
101 | ^
|
---|
102 | note: (skipping 14 contexts in backtrace; use -fmacro-backtrace-limit=0 to see all)
|
---|
103 | In file included from test.cpp:2:
|
---|
104 | /usr/include/boost/iostreams/stream.hpp:128:5: note: instantiated from:
|
---|
105 | BOOST_IOSTREAMS_FORWARD( stream, open_impl, Device,
|
---|
106 | ^
|
---|
107 | In file included from test.cpp:2:
|
---|
108 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
109 | /usr/include/boost/iostreams/detail/forward.hpp:56:5: note: instantiated from:
|
---|
110 | BOOST_PP_REPEAT_FROM_TO( \
|
---|
111 | ^
|
---|
112 | In file included from test.cpp:2:
|
---|
113 | In file included from /usr/include/boost/iostreams/stream.hpp:18:
|
---|
114 | In file included from /usr/include/boost/iostreams/detail/forward.hpp:24:
|
---|
115 | /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp:34:34: note: instantiated from:
|
---|
116 | # define BOOST_PP_REPEAT_FROM_TO BOOST_PP_CAT(BOOST_PP_REPEAT_FROM_TO_, BOOST_PP_AUTO_REC(BOOST_PP_REPEAT_P, 4))
|
---|
117 | ^
|
---|
118 | In file included from test.cpp:1:
|
---|
119 | In file included from /usr/include/boost/iostreams/device/file_descriptor.hpp:26:
|
---|
120 | In file included from /usr/include/boost/iostreams/detail/path.hpp:31:
|
---|
121 | In file included from /usr/include/boost/type_traits/is_same.hpp:31:
|
---|
122 | In file included from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14:
|
---|
123 | In file included from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10:
|
---|
124 | In file included from /usr/include/boost/mpl/int.hpp:20:
|
---|
125 | In file included from /usr/include/boost/mpl/aux_/integral_wrapper.hpp:22:
|
---|
126 | /usr/include/boost/preprocessor/cat.hpp:22:32: note: instantiated from:
|
---|
127 | # define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
|
---|
128 | ^
|
---|
129 | note: (skipping 14 contexts in backtrace; use -fmacro-backtrace-limit=0 to see all)
|
---|
130 | test.cpp:9:23: note: in instantiation of function template specialization 'boost::iostreams::stream<boost::iostreams::file_descriptor_sink, std::char_traits<char>, std::allocator<char> >::stream<int>' requested here
|
---|
131 | fdstream(int fd): stream<file_descriptor_sink>(fd) {}
|
---|
132 | ^
|
---|
133 | 1 error generated.
|
---|