aboutsummaryrefslogtreecommitdiffstats
path: root/common/dynamic_bitarray.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/dynamic_bitarray.h')
-rw-r--r--common/dynamic_bitarray.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/common/dynamic_bitarray.h b/common/dynamic_bitarray.h
index 2b5ab2bc..605d59d5 100644
--- a/common/dynamic_bitarray.h
+++ b/common/dynamic_bitarray.h
@@ -17,18 +17,19 @@
*
*/
+#ifndef DYNAMIC_BITARRAY_H
+#define DYNAMIC_BITARRAY_H
+
#include <cstdint>
#include <limits>
#include <vector>
-// This class implements a simple dynamic bitarray, backed by some resizable
-// random access storage. The default is to use a std::vector<uint8_t>.
-
-#ifndef DYNAMIC_BITARRAY_H
-#define DYNAMIC_BITARRAY_H
+#include "nextpnr_namespaces.h"
-namespace nextpnr {
+NEXTPNR_NAMESPACE_BEGIN
+// This class implements a simple dynamic bitarray, backed by some resizable
+// random access storage. The default is to use a std::vector<uint8_t>.
template <typename Storage = std::vector<uint8_t>> class DynamicBitarray
{
public:
@@ -76,6 +77,6 @@ template <typename Storage = std::vector<uint8_t>> class DynamicBitarray
Storage storage;
};
-}; // namespace nextpnr
+NEXTPNR_NAMESPACE_END
#endif /* DYNAMIC_BITARRAY_H */