Original Post
Having a problem with pointers here. say I have a function int Func( int* &pInteger ) { } and I call it from this code: ... Func( someObj->GetInt() ); ... the GetInt() functions is: SomeClass::GetInt() { return pointerToAnInt; } I was accessing the value returned by GetInt directly before, I basically made the value that GetInt() returns public instead of private. Now I get the error: c:\App\Main.cpp(352): error C2664: 'Func' : cannot convert parameter 1 from 'int *' to 'int *& ' A reference that is not to 'const' cannot be bound to a non-lvalue Is there a work around for this problem?