Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int main() {
  2. return 0;
  3. }
  4.  
  5. int main() {
  6. return(0);
  7. }
  8.  
  9. int i=0;
  10.  
  11. decltype(auto) f() { return i; }
  12. decltype(auto) g() { return(i); }
  13.  
  14. if (std::is_same<decltype(f()), decltype(g())>()) {
  15. std::clog << "same" << std::endl;
  16. }
  17. else {
  18. std::clog << "different" << std::endl;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement