mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
fix: typo error (#20)
This commit is contained in:
@@ -375,7 +375,7 @@ decltype(x+y) z;
|
|||||||
if (std::is_same<decltype(x), int>::value)
|
if (std::is_same<decltype(x), int>::value)
|
||||||
std::cout << "type x == int" << std::endl;
|
std::cout << "type x == int" << std::endl;
|
||||||
if (std::is_same<decltype(x), float>::value)
|
if (std::is_same<decltype(x), float>::value)
|
||||||
std::cout << "type z == float" << std::endl;
|
std::cout << "type x == float" << std::endl;
|
||||||
if (std::is_same<decltype(x), decltype(z)>::value)
|
if (std::is_same<decltype(x), decltype(z)>::value)
|
||||||
std::cout << "type z == type x" << std::endl;
|
std::cout << "type z == type x" << std::endl;
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user