You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
I think that policy should be whenever it is possible to implement a
library feature from a newer dialect in an older dialect, we will do so. If
the library feature depends on newer language features, then we shouldn't
backport it. If it uses newer language features, but they aren't core to the
facility or change, then we should make a best effort. For example, C++17 string_view has deduction guides, which are a C++17 language feature, but they
are not central to the design of string_view.
There is some concern that this could decrease portability where a user of libcu++ uses backported feature X and then switches to another standard library where feature X is not available in the same C++ dialect.
We could:
Do nothing and just backport features.
Make it opt-in.
Make it opt-out.
Provide an opt-in warning mode.
Provide an opt-out warning mode.
Only do it in cuda::std but not in std.
The text was updated successfully, but these errors were encountered:
jrhemstad
changed the title
Document policy on backporting C++ features
Document policy on backporting features to older C++ dialects
Nov 13, 2020
libcu++ makes some library features of the STL available in older C++ dialects, e.g., type_traits and chrono.
We should document our policy for what features libcu++ will backport.
From @brycelelbach:
There is some concern that this could decrease portability where a user of libcu++ uses backported feature X and then switches to another standard library where feature X is not available in the same C++ dialect.
We could:
cuda::std
but not instd
.The text was updated successfully, but these errors were encountered: