mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #447 from mpark/F.4
F.4: Fixed a trivial style issue.
This commit is contained in:
commit
1a2609391b
|
@ -2047,7 +2047,7 @@ This is C++14. For C++11, use a recursive formulation of `fac()`.
|
|||
`constexpr` does not guarantee compile-time evaluation;
|
||||
it just guarantees that the function can be evaluated at compile time for constant expression arguments if the programmer requires it or the compiler decides to do so to optimize.
|
||||
|
||||
constexpr int min(int x, int y) { return x < y ? x : y;}
|
||||
constexpr int min(int x, int y) { return x < y ? x : y; }
|
||||
|
||||
void test(int v)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user