| 30 | |
| 31 | template<class T> |
| 32 | inline void Foam::tmp<T>::operator++() |
| 33 | { |
| 34 | ptr_->operator++(); |
| 35 | |
| 36 | if (ptr_->count() > 1) |
| 37 | { |
| 38 | FatalErrorInFunction |
| 39 | << "Attempt to create more than 2 tmp's referring to" |
| 40 | " the same object of type " << typeName() |
| 41 | << abort(FatalError); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | |
| 46 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |