diff --git a/src/NCollection/NCollection_Shared.hxx b/src/NCollection/NCollection_Shared.hxx index f8125f28b6..78b13aa9ee 100644 --- a/src/NCollection/NCollection_Shared.hxx +++ b/src/NCollection/NCollection_Shared.hxx @@ -43,12 +43,22 @@ public: NCollection_Shared () {} //! Constructor with single argument - template - NCollection_Shared (T1 arg1) : T(arg1) {} + template NCollection_Shared (const T1& arg1) : T(arg1) {} + + //! Constructor with single argument + template NCollection_Shared (T1& arg1) : T(arg1) {} //! Constructor with two arguments - template - NCollection_Shared (T1 arg1, T2 arg2) : T(arg1, arg2) {} + template NCollection_Shared (const T1& arg1, const T2& arg2) : T(arg1, arg2) {} + + //! Constructor with two arguments + template NCollection_Shared (T1& arg1, const T2& arg2) : T(arg1, arg2) {} + + //! Constructor with two arguments + template NCollection_Shared (const T1& arg1, T2& arg2) : T(arg1, arg2) {} + + //! Constructor with two arguments + template NCollection_Shared (T1& arg1, T2& arg2) : T(arg1, arg2) {} /* this could work... //! Forwarding constructor