From b425fa7472ea82ab4302b619afcba3fcfb0d3d63 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 22 Oct 2012 23:17:00 +0200 Subject: digital/ucoolib/ucoolib/intf: move constructor as protected As Stream is an abstract class, forbid direct construction. --- digital/ucoolib/ucoolib/intf/stream.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'digital/ucoolib/ucoolib') diff --git a/digital/ucoolib/ucoolib/intf/stream.hh b/digital/ucoolib/ucoolib/intf/stream.hh index d0c7638f..c6912141 100644 --- a/digital/ucoolib/ucoolib/intf/stream.hh +++ b/digital/ucoolib/ucoolib/intf/stream.hh @@ -31,8 +31,6 @@ namespace ucoo { class Stream { public: - /// Default constructor. - Stream (); /// Set whether operations on this stream should block when no data is /// available. virtual void block (bool block = true); @@ -52,6 +50,9 @@ class Stream int getc (); /// Shortcut to write one character. Return -1 on error. int putc (int c); + protected: + /// Default constructor. + Stream (); protected: /// Current blocking operation flag. bool block_; -- cgit v1.2.3