2010-03-29 06:56:42 +02:00
|
|
|
/*
|
|
|
|
|
TRAIT-SPECIAL.hpp - supplement, not so commonly used definitions and specialisations
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2010, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2016-11-03 18:20:10 +01:00
|
|
|
/** @file §§§
|
|
|
|
|
** TODO §§§
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2010-03-29 06:56:42 +02:00
|
|
|
#ifndef LIB_META_TRAIT_SPECIAL_H
|
|
|
|
|
#define LIB_META_TRAIT_SPECIAL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "lib/meta/trait.hpp"
|
|
|
|
|
|
2014-04-03 22:42:48 +02:00
|
|
|
#include <unordered_map>
|
2010-03-29 06:56:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace lib {
|
|
|
|
|
namespace meta {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** the tr1 hashtable(s) are notoriously difficult to handle
|
|
|
|
|
* when it comes to detecting capabilities by metaprogramming,
|
|
|
|
|
* because the're built up from a generic baseclass and especially
|
|
|
|
|
* inherit their iterator-types as template specialisations.
|
|
|
|
|
*
|
|
|
|
|
* Thus we provide fixed diagnostics to bypass the traits check.
|
|
|
|
|
*/
|
|
|
|
|
template<typename KEY, typename VAL, typename HASH>
|
2014-04-03 22:42:48 +02:00
|
|
|
struct can_STL_ForEach<std::unordered_map<KEY,VAL,HASH> >
|
2010-03-29 06:56:42 +02:00
|
|
|
{
|
|
|
|
|
enum { value = true };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace lib::meta
|
|
|
|
|
#endif
|