From b2f552f3505c1d8247e1a0ca844fe372ef639f79 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Feb 2015 16:15:26 +0200 Subject: Rearrange inline function order to help MinGW On MinGW, if a DLL-exported inline function is called before it is known to be inline, the compiler issues a warning. --- odb/vector-impl.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/vector-impl.hxx') diff --git a/odb/vector-impl.hxx b/odb/vector-impl.hxx index 819062d..55b3103 100644 --- a/odb/vector-impl.hxx +++ b/odb/vector-impl.hxx @@ -174,10 +174,10 @@ namespace odb { public: void - _stop () const {impl_.stop ();} + _stop () const; bool - _tracking () const {return impl_.tracking ();} + _tracking () const; void _arm (transaction& t) const; @@ -191,8 +191,8 @@ namespace odb vector_base& operator= (const vector_base&); protected: - vector_base (): tran_ (0) {} - ~vector_base () {if (tran_ != 0) tran_->callback_unregister (this);} + ~vector_base (); + vector_base (); vector_base (const vector_base&); #ifdef ODB_CXX11 -- cgit v1.1