Skip to content

Commit

Permalink
Clarify compatibility wrt. template specializations
Browse files Browse the repository at this point in the history
We do not want users to specialize arbitrary templates in CCCL unless otherwise stated. This PR makes this clear in the README.md.
  • Loading branch information
bernhardmgruber committed Jul 31, 2024
1 parent 27253d7 commit d4a85ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ As mentioned above, not all possible source breaking changes constitute a Breaki
Users are encouraged to adhere to the following guidelines in order to minimize the risk of disruptions from accidentally depending on parts of CCCL that are not part of the public API:
- Do not add any declarations to the `thrust::`, `cub::`, `nv::`, or `cuda::` namespaces unless an exception is noted for a specific symbol, e.g., specializing a type trait.
- Do not add any declarations to, or specialize any template from, the `thrust::`, `cub::`, `nv::`, or `cuda::` namespaces unless an exception is noted for a specific symbol, e.g., specializing a type trait.
- **Rationale**: This would cause symbol conflicts if a symbol is added with the same name.
- Do not take the address of any API in the `thrust::`, `cub::`, `cuda::`, or `nv::` namespaces.
- **Rationale**: This would prevent adding overloads of these APIs.
Expand Down

0 comments on commit d4a85ac

Please sign in to comment.