diff options
Diffstat (limited to 'odb/std-forward-list-traits.hxx')
-rw-r--r-- | odb/std-forward-list-traits.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/odb/std-forward-list-traits.hxx b/odb/std-forward-list-traits.hxx index a86524b..1e88abc 100644 --- a/odb/std-forward-list-traits.hxx +++ b/odb/std-forward-list-traits.hxx @@ -17,7 +17,8 @@ namespace odb class access::container_traits<std::forward_list<V, A>> { public: - static container_kind const kind = ck_ordered; + static const container_kind kind = ck_ordered; + static const bool smart = false; typedef std::forward_list<V, A> container_type; @@ -33,7 +34,7 @@ namespace odb index_type i (0); for (typename container_type::const_iterator j (c.begin ()), e (c.end ()); j != e; ++j) - f.insert_one (i++, *j); + f.insert (i++, *j); } static void @@ -45,25 +46,25 @@ namespace odb { index_type dummy; i = c.insert_after (i, value_type ()); - more = f.load_all (dummy, *i); + more = f.select (dummy, *i); } } static void update (const container_type& c, const functions& f) { - f.delete_all (); + f.delete_ (); index_type i (0); for (typename container_type::const_iterator j (c.begin ()), e (c.end ()); j != e; ++j) - f.insert_one (i++, *j); + f.insert (i++, *j); } static void erase (const functions& f) { - f.delete_all (); + f.delete_ (); } }; } |