Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. bla.hpp:
  2.  
  3. class bla_impl; // forward
  4.  
  5. class bla
  6. {
  7. public:
  8. bla();
  9. ~bla();
  10.  
  11. void method();
  12.  
  13. private:
  14. bla_impl *_impl;
  15. };
  16.  
  17. bla.cpp:
  18.  
  19.  
  20. bla::bla()
  21. {
  22. _impl = new bla_impl();
  23. }
  24.  
  25. bla::~bla() { delete impl; }
  26.  
  27. void bla::method()
  28. {
  29. _impl->method();
  30. }
  31.  
  32.  
  33.  
  34. bla_impl.cpp
  35.  
  36. bla::bla(){}
  37. bla::~bla() {}
  38.  
  39. void bla::method()
  40. {
  41. ... was ich eigentlich machen wollte ...
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement