aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-01 11:46:10 +0000
committerD. Shah <dave@ds0.me>2021-02-02 17:00:33 +0000
commit6566a011b43289b9b550f3b7f8801156275cb321 (patch)
tree7c8f89b52c7a18f6df3d2026b5403bf5c1e416f2 /common
parentb31b21fd5151ab783fbe665e23a0848b2c172339 (diff)
downloadnextpnr-6566a011b43289b9b550f3b7f8801156275cb321.tar.gz
nextpnr-6566a011b43289b9b550f3b7f8801156275cb321.tar.bz2
nextpnr-6566a011b43289b9b550f3b7f8801156275cb321.zip
nexus: Implement IdStringList for all arch object names
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 19d919e1..d4db9e9e 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -181,6 +181,12 @@ template <typename T, size_t N> class SSOArray
std::fill(begin(), end(), init);
}
+ SSOArray(const SSOArray &other) : m_size(other.size())
+ {
+ alloc();
+ std::copy(other.begin(), other.end(), begin());
+ }
+
template <typename Tother> SSOArray(const Tother &other) : m_size(other.size())
{
alloc();