Guest User

Untitled

a guest
Nov 29th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. -------------- types.hxx -------------
  2. #include <cstdint>
  3. #include <functional>
  4. struct Point;
  5. -------------- decls.hxx -------------
  6. std::function<void()> action;
  7. struct Point
  8. {
  9.    int get();
  10.    int get() const;
  11. };
  12. -------------- src.cxx ------------
  13. #include "types.hxx"
  14. #include "decls.hxx"
  15. int main()
  16. {
  17.    action();
  18.    std::function<uint32_t(int arg1)> callA([](int arg1)->uint32_t
  19.       {
  20.          return 0;
  21.       });
  22.    (callA=[](int arg1)->uint32_t
  23.       {
  24.          return 100500;
  25.       });
  26.    return 0;
  27. }
  28. int Point::get()
  29. {
  30.    return 0;
  31. }
  32. int Point::get() const
  33. {
  34.    return 0;
  35. }
  36. ----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment