From 6ebe4913f63adacbc516e24000c498164f2966ef Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Mon, 16 Mar 2015 17:41:12 +0000 Subject: [PATCH] refs #356 Removed IsQuantity trait, no longer used. --- src/blackmisc/valueobject.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/blackmisc/valueobject.h b/src/blackmisc/valueobject.h index 30571e59d..26a9ac97b 100644 --- a/src/blackmisc/valueobject.h +++ b/src/blackmisc/valueobject.h @@ -38,25 +38,6 @@ namespace BlackMisc class CIcon; class CVariant; - namespace PhysicalQuantities - { - template class CPhysicalQuantity; - - //! Traits class to test whether a class is a physical quantity class. Useful for enable_if. - template - class IsQuantity - { - struct yes { char x; }; - struct no { yes x[2]; }; - template static yes test(const CPhysicalQuantity &); - static no test(...); - - public: - //! True if and only if T is derived from CPhysicalQuantity. - static const bool value = sizeof(test(*(T *)0)) == sizeof(yes); - }; - } - /*! * This registers the value type T with the BlackMisc meta type system, * making it available for use with the extended feature set of BlackMisc::CVariant.