Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- return 0;
- }
- int main() {
- return(0);
- }
- int i=0;
- decltype(auto) f() { return i; }
- decltype(auto) g() { return(i); }
- if (std::is_same<decltype(f()), decltype(g())>()) {
- std::clog << "same" << std::endl;
- }
- else {
- std::clog << "different" << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement