header.hpp
    
    
    namespace outer {
        namespace inner {
            class MyClass {
                public:
                    short attr1;
            };
        }
    }
    
    
    Run

This works:
    
    
    type
      MyClass {.header: "myheader.hpp", importcpp: "outer::inner::MyClass".} = 
object
        attr1: int16
    
    
    Run

This goes `error: ‘outer’ has not been declared`:
    
    
    type
      MyClass {.importcpp: "outer::inner::MyClass".} = object
        attr1: int16
    
    
    Run

Is it possible to avoid using `header` pragma when using importcpp (like 
importc)?

Reply via email to