SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <string>
  2. #include <iostream>
  3. #include <vector>
  4. #include "c.h"
  5.  
  6. using namespace std;
  7.  
  8. C createObject() {
  9.     return { C() };
  10. }
  11.  
  12. int main() {
  13.  
  14.     /* // 0
  15.     {
  16.         C obj1;
  17.     }
  18.     {
  19.         C obj2;
  20.     }
  21.     */
  22.  
  23.     /* // 1
  24.     C obj1;
  25.     C obj2(obj1);
  26.     */
  27.  
  28.     /* // 2
  29.     C obj2 = move(createObject());
  30.     */
  31.    
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top