Guest User

Untitled

a guest
Dec 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. //lib.h
  2. #pragma once
  3.  
  4. void func1();
  5. void func2();
  6. void funcN();
  7.  
  8. //lib.cpp
  9. #include "lib.h"
  10.  
  11. void func1(){}
  12. void func2(){}
  13. void funcN(){}
  14.  
  15. //main.cpp
  16. #include "lib.h"
  17.  
  18. int main() {
  19. return 0;
  20. }
  21.  
  22. $ g++ main.cpp lib.cpp
  23.  
  24. //change in lib.cpp
  25.  
  26. void funcN(int i, auto... j) {
  27.  
  28. }
  29.  
  30. //change in lib.h
  31. void funcN(int, auto...);
  32.  
  33. //change in main.cpp
  34.  
  35. int main() {
  36. funcN(1, 2);
  37. return 0;
  38. }
  39.  
  40. $ g++ main.cpp lib.cpp
Add Comment
Please, Sign In to add comment