Tried to fix a compiler issue on CentOS6

This commit is contained in:
Matthias Koefferlein 2019-03-11 21:33:33 +01:00
parent 21f8ba6f35
commit 01ff0684f2
1 changed files with 10 additions and 6 deletions

View File

@ -173,6 +173,16 @@ void NetlistDeviceExtractor::extract (db::Layout &layout, db::Cell &cell, const
extract_without_initialize (layout, cell, clusters, layers);
}
namespace {
struct ExtractorCacheValueType {
ExtractorCacheValueType () { }
db::Vector disp;
tl::vector<db::Device *> devices;
};
}
void NetlistDeviceExtractor::extract_without_initialize (db::Layout &layout, db::Cell &cell, hier_clusters_type &clusters, const std::vector<unsigned int> &layers)
{
tl_assert (layers.size () == m_layer_definitions.size ());
@ -233,12 +243,6 @@ void NetlistDeviceExtractor::extract_without_initialize (db::Layout &layout, db:
tl::RelativeProgress progress (tl::to_string (tr ("Extracting devices")), n, 1);
struct ExtractorCacheValueType {
ExtractorCacheValueType () { }
db::Vector disp;
tl::vector<db::Device *> devices;
};
typedef std::map<std::vector<db::Region>, ExtractorCacheValueType> extractor_cache_type;
extractor_cache_type extractor_cache;