mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
T.concept: Remove comment unnecessary in good example
The properly defined `Number` concept used as the template type is fully expressive.
This commit is contained in:
@@ -16287,7 +16287,7 @@ The ability to specify a meaningful semantics is a defining characteristic of a
|
||||
&& has_multiply<T>
|
||||
&& has_divide<T>;
|
||||
|
||||
template<Number N> auto algo(const N& a, const N& b) // use two numbers
|
||||
template<Number N> auto algo(const N& a, const N& b)
|
||||
{
|
||||
// ...
|
||||
return a + b;
|
||||
|
||||
Reference in New Issue
Block a user