Move Box alloc/dealloc functions to guard object
diff --git a/gen/src/write.rs b/gen/src/write.rs
index cbad93c..44978f1 100644
--- a/gen/src/write.rs
+++ b/gen/src/write.rs
@@ -1420,14 +1420,18 @@
     let instance = ident.to_symbol();
 
     writeln!(out, "template <>");
-    writeln!(out, "{} *Box<{}>::alloc() noexcept {{", inner, inner);
+    writeln!(
+        out,
+        "{} *Box<{}>::allocation::alloc() noexcept {{",
+        inner, inner,
+    );
     writeln!(out, "  return cxxbridge1$box${}$alloc();", instance);
     writeln!(out, "}}");
 
     writeln!(out, "template <>");
     writeln!(
         out,
-        "void Box<{}>::dealloc({} *ptr) noexcept {{",
+        "void Box<{}>::allocation::dealloc({} *ptr) noexcept {{",
         inner, inner,
     );
     writeln!(out, "  cxxbridge1$box${}$dealloc(ptr);", instance);