From 28ad5ff233e2e27f1883b10b5b6930ac684b7ae0 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Wed, 8 Oct 2003 18:49:30 +0000 Subject: [PATCH] Add inline to templated constructor decl to prevent a mingw g++ warning when defining a constructor with the dllimport attribute. [SVN r20314] --- include/boost/python/suite/indexing/slice.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/python/suite/indexing/slice.hpp b/include/boost/python/suite/indexing/slice.hpp index d7d49596..1ed5a149 100755 --- a/include/boost/python/suite/indexing/slice.hpp +++ b/include/boost/python/suite/indexing/slice.hpp @@ -30,9 +30,11 @@ namespace boost { namespace python { namespace indexing { // A newly constructed slice object is useless until setLength is called // - template slice (T const &ref); + template inline slice (T const &ref); void setLength (int sequenceLength); + // Tell slice object how big the container is (so it can adjust + // for negative indexes, etc...) int start() const { validate(); return mStart; } int step() const { validate(); return mStep; }