Open
Description
Describe the bug
Hi. I get a compile error when I compile with nvcc(cuda).
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
GHC_INLINE directory_entry::operator const filesystem::path&() const noexcept
^~~~
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ‘operator const int’ in ‘class ghc::filesystem::directory_entry’ does not name a type
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
GHC_INLINE directory_entry::operator const filesystem::path&() const noexcept
^~~~
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
/tmp/tmp.opBbT90DDi/extern/filesystem/include/ghc/filesystem.hpp:5219:40: error: ‘operator const int’ in ‘class ghc::filesystem::directory_entry’ does not name a type
To Reproduce
single header mode
#include <ghc/filesystem>
I could fix this bug by using forward/implementation in my project.
Metadata
Metadata
Assignees
Labels
No labels