made ctor explicit

[SVN r28125]
This commit is contained in:
Jonathan Turkanis
2005-04-11 15:31:07 +00:00
parent d746fc04d7
commit ef059cfa28
3 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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:

View File

@@ -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);