diff options
author | D. Shah <dave@ds0.me> | 2021-02-01 11:46:10 +0000 |
---|---|---|
committer | D. Shah <dave@ds0.me> | 2021-02-02 17:00:33 +0000 |
commit | 6566a011b43289b9b550f3b7f8801156275cb321 (patch) | |
tree | 7c8f89b52c7a18f6df3d2026b5403bf5c1e416f2 /common | |
parent | b31b21fd5151ab783fbe665e23a0848b2c172339 (diff) | |
download | nextpnr-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.h | 6 |
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(); |