Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------- types.hxx -------------
- #include <cstdint>
- #include <functional>
- struct Point;
- -------------- decls.hxx -------------
- std::function<void()> action;
- struct Point
- {
- int get();
- int get() const;
- };
- -------------- src.cxx ------------
- #include "types.hxx"
- #include "decls.hxx"
- int main()
- {
- action();
- std::function<uint32_t(int arg1)> callA([](int arg1)->uint32_t
- {
- return 0;
- });
- (callA=[](int arg1)->uint32_t
- {
- return 100500;
- });
- return 0;
- }
- int Point::get()
- {
- return 0;
- }
- int Point::get() const
- {
- return 0;
- }
- ----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment