diff options
Diffstat (limited to 'common/nextpnr.h')
-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(); |