lemon/concepts/maps.h
changeset 784 1a7fe3bef514
parent 529 f5bc148f7e1f
child 975 b873350e6258
     1.1 --- a/lemon/concepts/maps.h	Fri Oct 16 10:21:37 2009 +0200
     1.2 +++ b/lemon/concepts/maps.h	Thu Nov 05 15:50:01 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2008
     1.8 + * Copyright (C) 2003-2009
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -16,8 +16,8 @@
    1.13   *
    1.14   */
    1.15  
    1.16 -#ifndef LEMON_CONCEPT_MAPS_H
    1.17 -#define LEMON_CONCEPT_MAPS_H
    1.18 +#ifndef LEMON_CONCEPTS_MAPS_H
    1.19 +#define LEMON_CONCEPTS_MAPS_H
    1.20  
    1.21  #include <lemon/core.h>
    1.22  #include <lemon/concept_check.h>
    1.23 @@ -182,7 +182,8 @@
    1.24  
    1.25        template<typename _ReferenceMap>
    1.26        struct Constraints {
    1.27 -        void constraints() {
    1.28 +        typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type
    1.29 +        constraints() {
    1.30            checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
    1.31            ref = m[key];
    1.32            m[key] = val;
    1.33 @@ -213,4 +214,4 @@
    1.34  
    1.35  } //namespace lemon
    1.36  
    1.37 -#endif // LEMON_CONCEPT_MAPS_H
    1.38 +#endif