-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File cuda/rtc.hpp
fails to compile.
#546
Comments
It works for me:
Can you give me more exact details on how you tried to build this? And - were you using v0.6.3 ? Another version? |
Visual Studio 2022 (Version 17.7.4) (v143) with
I also tested with "ISO C++20 Standard (/std:c++20)", "ISO C++14 Standard (/std:c++14)", "ISO C11 Standard (/std:c11)" and "ISO C17 (2018) Standard (/std:c17)". NVCC Version:
|
Hmm, right, MSVC... maybe I can make the overload resolution easier for it somehow. |
Can you try playing with the signature on line 489? Replace:
with each of the following:
... and see what happens with the compilation. |
The following works: template <typename MarshalTarget, typename Delimiter>
MarshalTarget& operator<<(MarshalTarget& mt, const detail_::opt_start_t<Delimiter>& opt_start) but you need to change template <typename Delimiter>
struct opt_start_t {
mutable bool ever_used;
Delimiter delimiter_;
opt_start_t(Delimiter delimiter) : ever_used(false), delimiter_(delimiter){ }
}; Note the |
Hmm. That's not a solution I favor, since it twists the meaning of |
Also, thanks again for your help in working with me on this :-) |
Your response is on the right track, the only thing needed was an template <typename T, typename = ::cuda::detail_::enable_if_t<not detail_::is_marshalling_control<std::decay_t<T>>::value>>
marshalled_options_t& operator<<(T&& x)
{
oss << x;
return *this;
} This is ensure that the operator is not invoked for any of Also, it was my pleasure. |
Some more cosmetic fiddling. I believe we're done... |
File
cuda/rtc.hpp
fails to compile.Minimal example:
Current output:
63 compilation errors similar to:
Expected output:
The code should compile and output:
The text was updated successfully, but these errors were encountered: