You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include <iostream>
-
- int main() {
- auto x = 1;
- auto y = 2.0;
- decltype(x+y) z;
- if (std::is_same<decltype(x+y), double>::value) {
- std::cout << "x+y is double" << std::endl;
- }
- return 0;
- }
|