elanhickler

how to prepare for PCH

Dec 17th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. /*MyCode.h*/
  2. // notice how vector isn't included here
  3. vector<int> somefunc();
  4.  
  5. /*MyCode.cpp*/
  6. #include <vector> //include vector here
  7.  
  8. #include MyCode.h //then include the header
  9.  
  10. vector<int> somefunc(){ return vector<int>({1,2,3,}); };
Advertisement
Add Comment
Please, Sign In to add comment