diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-07 14:48:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-07 14:48:13 +0200 |
commit | 4f38adc11ab1a3a1ab2dd3f958c917182be7d71f (patch) | |
tree | fd4242b2fb5648536a6307a18442abfcaf280573 /libxsde/xsde/cxx/string-sequence-stl.ixx | |
parent | 0baca4b033509b6c4ebfabfb74bf6518c3b1182c (diff) |
Implement generation of clone functions
New test: clone.
Diffstat (limited to 'libxsde/xsde/cxx/string-sequence-stl.ixx')
-rw-r--r-- | libxsde/xsde/cxx/string-sequence-stl.ixx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libxsde/xsde/cxx/string-sequence-stl.ixx b/libxsde/xsde/cxx/string-sequence-stl.ixx index 55e3d5d..ae09d04 100644 --- a/libxsde/xsde/cxx/string-sequence-stl.ixx +++ b/libxsde/xsde/cxx/string-sequence-stl.ixx @@ -134,8 +134,15 @@ namespace xsde reserve (size_t n) { if (capacity_ < n) - grow_ (n, sizeof (std::string*), &move_); + grow_ (n, sizeof (std::string), &move_); } + + inline void string_sequence:: + _copy (string_sequence& c) const + { + copy (c); + } + #else inline sequence_base::error string_sequence:: push_back (const std::string& x) @@ -193,6 +200,12 @@ namespace xsde r = grow_ (n, sizeof (std::string), &move_); return r; } + + inline bool string_sequence:: + _copy (string_sequence& c) const + { + return copy (c) == error_none; + } #endif inline bool |