2
0
mirror of https://github.com/boostorg/compat.git synced 2026-01-19 04:02:16 +00:00

Update documentation of nontype to clarify that it requires C++17

This commit is contained in:
Peter Dimov
2025-11-03 18:41:18 +02:00
parent 6b9e52c284
commit 79ca9646ea

View File

@@ -16,6 +16,11 @@ template `std::nontype`.
`nontype` is used for passing function pointers or member function
pointers to `function_ref`.
Since `nontype_t` and `nontype` have a template parameter of type
`auto`, they require {cpp}17. When {cpp}17 isn't available, this
header can still be included, but doesn't define them. (It would
have caused an error if it did.)
## Example
```