aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/buffer.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-07 14:48:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-07 14:48:13 +0200
commit4f38adc11ab1a3a1ab2dd3f958c917182be7d71f (patch)
treefd4242b2fb5648536a6307a18442abfcaf280573 /libxsde/xsde/cxx/buffer.ixx
parent0baca4b033509b6c4ebfabfb74bf6518c3b1182c (diff)
Implement generation of clone functions
New test: clone.
Diffstat (limited to 'libxsde/xsde/cxx/buffer.ixx')
-rw-r--r--libxsde/xsde/cxx/buffer.ixx16
1 files changed, 16 insertions, 0 deletions
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
}
}