• Kirill Smelkov's avatar
    libgolang: Provide Nil as alias for std::nullptr_t · 230c81c4
    Kirill Smelkov authored
    This continues 60f6db6f (libgolang: Provide nil as alias for nullptr and
    NULL): I've tried to compile pygolang with Clang on my Debian 10
    workstation and got:
    
        $ CC=clang CXX=clang++ python setup.py build_dso -i
    
        In file included from ./golang/fmt.h:32:
        ./golang/libgolang.h:381:11: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
        constexpr nullptr_t nil = nullptr;
                  ^~~~~~~~~
                  std::nullptr_t
        /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8/bits/c++config.h:242:29: note: 'std::nullptr_t' declared here
          typedef decltype(nullptr)     nullptr_t;
                                        ^
        :
        In file included from ./golang/context.h
        In file included from golang/runtime/libgolang.cpp:30:
        ./golang/libgolang.h:381:11: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
        constexpr nullptr_t nil = nullptr;
                  ^~~~~~~~~
         ...
    230c81c4