| 47 | |
| 48 | template<class T> |
| 49 | inline Foam::tmp<T>::tmp(T* tPtr) |
| 50 | : |
| 51 | type_(TMP), |
| 52 | ptr_(tPtr) |
| 53 | { |
| 54 | if (tPtr && !tPtr->unique()) |
| 55 | { |
| 56 | FatalErrorInFunction |
| 57 | << "Attempted construction of a " << typeName() |
| 58 | << " from non-unique pointer" |
| 59 | << abort(FatalError); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | |
| 64 | template<class T> |