Skip to content

Commit

Permalink
Replace std::is_void by std::decay
Browse files Browse the repository at this point in the history
Currently `std::is_void` is used as an example of type trait.
But `std::is_void` contains `::value` instead of `::type`,
thus not fitting with the definition of "trait."
  • Loading branch information
shiqiao-zhang authored Feb 7, 2019
1 parent 43fecd9 commit 52bde30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For example,

is a trait taking an arbitrary number of types that always "returns" `void`. There are
many familiar examples of traits in the Standard Library; `std::remove_reference` and
`std::is_void` to name two.
`std::decay` to name two.

## Aliases

Expand Down

0 comments on commit 52bde30

Please sign in to comment.