mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
book: typo fixes (#251)
This commit is contained in:
@@ -153,7 +153,7 @@ actually returns a constant at runtime, which causes illegal production.
|
|||||||
C++11 provides `constexpr` to let the user explicitly declare that the function or
|
C++11 provides `constexpr` to let the user explicitly declare that the function or
|
||||||
object constructor will become a constant expression at compile time.
|
object constructor will become a constant expression at compile time.
|
||||||
This keyword explicitly tells the compiler that it should verify that `len_foo`
|
This keyword explicitly tells the compiler that it should verify that `len_foo`
|
||||||
should be a compile-time constant expression. Constant expression.
|
should be a compile-time constant expression.
|
||||||
|
|
||||||
In addition, the function of `constexpr` can use recursion:
|
In addition, the function of `constexpr` can use recursion:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user