/*****************************************************************************
 * $LastChangedDate: 2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011) $
 * @file
 * @author  Jim E. Brooks  http://www.palomino3d.org
 * @brief   Test of shptr template class.
 *//*
 * LEGAL:   COPYRIGHT (C) 2004 JIM E. BROOKS
 *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
 *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
 *****************************************************************************/

#ifndef TEST_SHPTR_HH
#define TEST_SHPTR_HH 1

// Get refcount from Shared* object.
template<typename SHARED>
int
GetRefCount( shptr<SHARED>* ptr )
{
    return ptr->mObj->mRefCount;
}

template<typename SHARED>
int
GetRefCount( shptr<SHARED>/*fool checks.sh*/& ptr )
{
    return ptr.mObj->mRefCount;
}

#endif // TEST_SHPTR_HH
