Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
@ -1038,8 +1038,12 @@ namespace CppSharp
{
var decl = ctx.GetNamespaces(i);
var _decl = Visit(decl) as AST.Namespace;
// HACK: we have an irreproducible case where an STD name-space is added to a custom header
if (_decl.Namespace == _ctx)
_ctx.Declarations.Add(_decl);
}
for (uint i = 0; i < ctx.EnumsCount; ++i)