summaryrefslogtreecommitdiffhomepage
path: root/digital/ucoolib/ucoolib/intf/stream.hh
diff options
context:
space:
mode:
authorNicolas Schodet2012-10-22 23:17:00 +0200
committerNicolas Schodet2012-10-22 23:18:15 +0200
commitb425fa7472ea82ab4302b619afcba3fcfb0d3d63 (patch)
tree3a0069c3225b7218f49b094bcc37b95e06308724 /digital/ucoolib/ucoolib/intf/stream.hh
parenta601f45183884ee98337b84a8cdd57f7850a1a66 (diff)
digital/ucoolib/ucoolib/intf: move constructor as protected
As Stream is an abstract class, forbid direct construction.
Diffstat (limited to 'digital/ucoolib/ucoolib/intf/stream.hh')
-rw-r--r--digital/ucoolib/ucoolib/intf/stream.hh5
1 files changed, 3 insertions, 2 deletions
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);
@@ -53,6 +51,9 @@ class Stream
/// Shortcut to write one character. Return -1 on error.
int putc (int c);
protected:
+ /// Default constructor.
+ Stream ();
+ protected:
/// Current blocking operation flag.
bool block_;
};