sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: #ifndef ISSAME_H sl@0: #define ISSAME_H sl@0: sl@0: sl@0: // Provisional implementation of a construct that allows to determine sl@0: // at compile time whether a type is the same as another type sl@0: sl@0: // To be redefined using std::tr1:is_same when a TR1 implementation sl@0: // becomes available for use with Symbian OS. sl@0: sl@0: sl@0: // Implementation construct - do not use sl@0: template sl@0: struct TIsSame sl@0: { sl@0: enum sl@0: { sl@0: EValue = 0 sl@0: }; sl@0: }; sl@0: sl@0: // Implementation construct - do not use sl@0: template sl@0: struct TIsSame sl@0: { sl@0: enum sl@0: { sl@0: EValue = 1 sl@0: }; sl@0: }; sl@0: sl@0: sl@0: #define IS_SAME(Type1, Type2) TIsSame::EValue sl@0: sl@0: sl@0: #endif //! ISSAME_H sl@0: