2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Add inline to templated constructor decl to prevent a mingw g++ warning

when defining a constructor with the dllimport attribute.


[SVN r20314]
This commit is contained in:
Raoul Gough
2003-10-08 18:49:30 +00:00
parent 41bf4105c2
commit 28ad5ff233

View File

@@ -30,9 +30,11 @@ namespace boost { namespace python { namespace indexing {
// A newly constructed slice object is useless until setLength is called
//
template<typename T> slice (T const &ref);
template<typename T> 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; }