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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user