COIN-OR::LEMON - Graph Library

Changeset 989:ca95f8b5c931 in lemon-0.x for src/lemon/concept_check.h


Ignore:
Timestamp:
11/13/04 22:37:54 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1379
Message:

XyzConcept? moved to Xyz::Constraints
use checkConcept in the next way:

checkConcept<ErasableGraph?, ListGraph?>();
checkConcept<ReadWriteMap?<Node, Node>, PredMap?>;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/concept_check.h

    r986 r989  
    4040  }
    4141
     42  template <typename Concept, typename Type>
     43  inline void checkConcept() {
     44    function_requires<typename Concept::template Constraints<Type> >();
     45  }
     46
    4247#define BOOST_CLASS_REQUIRE(type_var, ns, concept) \
    4348  typedef void (ns::concept <type_var>::* func##type_var##concept)(); \
Note: See TracChangeset for help on using the changeset viewer.