From 4f38adc11ab1a3a1ab2dd3f958c917182be7d71f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Oct 2010 14:48:13 +0200 Subject: Implement generation of clone functions New test: clone. --- libxsde/xsde/cxx/buffer.ixx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libxsde/xsde/cxx/buffer.ixx') diff --git a/libxsde/xsde/cxx/buffer.ixx b/libxsde/xsde/cxx/buffer.ixx index 2229396..d9c71eb 100644 --- a/libxsde/xsde/cxx/buffer.ixx +++ b/libxsde/xsde/cxx/buffer.ixx @@ -220,5 +220,21 @@ namespace xsde { return !(x == y); } + + // + // +#ifndef XSDE_EXCEPTIONS + inline bool buffer:: + _copy (buffer& c) const + { + return c.assign (data_, size_) == error_none; + } +#else + inline void buffer:: + _copy (buffer& c) const + { + c.assign (data_, size_); + } +#endif } } -- cgit v1.1