Ignore:
Timestamp:
Sep 28, 2015, 2:39:59 PM (4 years ago)
Author:
nmedfort
Message:

Bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/analysis/pabloverifier.cpp

    r4799 r4804  
    44#include <pablo/printer_pablos.h>
    55#include <iostream>
     6#ifdef USE_BOOST
    67#include <boost/container/flat_set.hpp>
    7 #include <boost/container/flat_map.hpp>
    8 
    9 using namespace boost::container;
     8#else
     9#include <unordered_set>
     10#endif
    1011
    1112namespace pablo {
    1213
    13 using ScopeSet = flat_set<const PabloBlock *>;
     14#ifdef USE_BOOST
     15template <typename Type>
     16using SmallSet = boost::container::flat_set<Type>;
     17#else
     18template <typename Type>
     19using SmallSet = std::unordered_set<Type>;
     20#endif
     21
     22using ScopeSet = SmallSet<const PabloBlock *>;
    1423
    1524/** ------------------------------------------------------------------------------------------------------------- *
     
    202211private:
    203212    const OrderingVerifier * const mParent;
    204     boost::container::flat_set<const PabloAST *> mSet;
     213    SmallSet<const PabloAST *> mSet;
    205214};
    206215
Note: See TracChangeset for help on using the changeset viewer.