Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //lib.h
- #pragma once
- void func1();
- void func2();
- void funcN();
- //lib.cpp
- #include "lib.h"
- void func1(){}
- void func2(){}
- void funcN(){}
- //main.cpp
- #include "lib.h"
- int main() {
- return 0;
- }
- $ g++ main.cpp lib.cpp
- //change in lib.cpp
- void funcN(int i, auto... j) {
- }
- //change in lib.h
- void funcN(int, auto...);
- //change in main.cpp
- int main() {
- funcN(1, 2);
- return 0;
- }
- $ g++ main.cpp lib.cpp
Add Comment
Please, Sign In to add comment