diff --git a/src/FbTk/RefCount.hh b/src/FbTk/RefCount.hh index 8adcc839..25958640 100644 --- a/src/FbTk/RefCount.hh +++ b/src/FbTk/RefCount.hh @@ -134,6 +134,26 @@ void RefCount::incRefCount() { (*m_refcount)++; } +template +inline RefCount makeRef() { + return RefCount(new Pointer); +} + +template +inline RefCount makeRef(const Arg1 &arg1) { + return RefCount(new Pointer(arg1)); +} + +template +inline RefCount makeRef(const Arg1 &arg1, const Arg2 &arg2) { + return RefCount(new Pointer(arg1, arg2)); +} + +template +inline RefCount makeRef(const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { + return RefCount(new Pointer(arg1, arg2, arg3)); +} + } // end namespace FbTk #endif // FBTK_REFCOUNT_HH