mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-13 02:34:44 +00:00
Use set for strpool_attribute to maintain ordering, but keep some backwards compatibility
This commit is contained in:
parent
3a67468860
commit
8117ab228e
4 changed files with 16 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include <stdexcept>
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
@ -1001,6 +1002,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
pool(std::set<K> other) {
|
||||
for (auto it : other)
|
||||
insert(it);
|
||||
}
|
||||
|
||||
pool(const pool &other)
|
||||
{
|
||||
entries = other.entries;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue