mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-27 17:12:17 +00:00
made ctor explicit
[SVN r28125]
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
#endif
|
||||
localizable_tag
|
||||
{ };
|
||||
mode_adapter(const policy_type& t) : t_(t) { }
|
||||
explicit mode_adapter(const policy_type& t) : t_(t) { }
|
||||
|
||||
// Device member functions.
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
BOOST_STATIC_ASSERT((is_convertible<Mode, output>::value));
|
||||
typedef Ch char_type;
|
||||
typedef sink_tag io_category;
|
||||
output_iterator_adapter(OutIt out) : out_(out) { }
|
||||
explicit output_iterator_adapter(OutIt out) : out_(out) { }
|
||||
void write(const char_type* s, std::streamsize n)
|
||||
{ std::copy(s, s + n, out_); }
|
||||
private:
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
>::type tag;
|
||||
typedef range_adapter_impl<tag> impl;
|
||||
|
||||
range_adapter(const Range& rng);
|
||||
explicit range_adapter(const Range& rng);
|
||||
range_adapter(iterator first, iterator last);
|
||||
std::streamsize read(char_type* s, std::streamsize n);
|
||||
void write(const char_type* s, std::streamsize n);
|
||||
|
||||
Reference in New Issue
Block a user