Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: C++  |  size: 0.31 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class c2{
  2.         public:
  3.                 function2(std::ifstream &f){
  4.                         here it breaks
  5.                 }
  6. };
  7.  
  8. class c1{
  9.         public:
  10.                 c2 thing
  11.                 function1(std::ifstream &f){
  12.                         thing.function2(f);
  13.                 }
  14. };
  15. void funct2(std::ifstream &f){
  16.         c1 stuff;
  17.         stuff.function1(f);
  18. }
  19. void funct1(){
  20.         std::ifstream f("whatever");
  21.         funct2(f);
  22. }