summaryrefslogtreecommitdiff
path: root/lib/nes/common/box.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/common/box.hh')
-rw-r--r--lib/nes/common/box.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nes/common/box.hh b/lib/nes/common/box.hh
index 442d60f..3a65613 100644
--- a/lib/nes/common/box.hh
+++ b/lib/nes/common/box.hh
@@ -1,5 +1,7 @@
#pragma once
+#include "nes/common/types.hh"
+
namespace nes
{
/// Wrapper around an object, allowing for it to be uninitialized or reassigned even if the object type doesn't
@@ -10,7 +12,7 @@ namespace nes
class box
{
bool initialized_{ false };
- alignas(T) unsigned char buffer_[sizeof(T)];
+ alignas(T) u8 buffer_[sizeof(T)];
public:
/// Create an empty box.