Skip to content

Can't compile with nvcc #139

Open
Open
@yanggthomas

Description

@yanggthomas

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions