- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to understand the following compiler error
1>OpsData\\PublicRoute.cpp(301): error: class "std::basic_ofstream" has no suitable copy constructor
1> list.Write( oFile ) ;
which would appear to stem from the definition
ofstream oFile ;
where ofstrem is defined in
If I check the function definition in nodelist.cpp
BOOL CPublicRouteNodeList::Write( ofstream oFile )
the ofstream definition also points back to the same definition in
I dont understand why the two defintions - which appear to be identical - wont work
What is trying to do here
I note thaat the code does compile with some other compilers
Any suggestioos?
advTHANKXance yet again
Jimmy
=mjc=
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of trying to copy the parameter by value, copy it by reference, i.e.:
BOOL CPublicRouteNodeList::Write( ofstream& oFile )
Judy
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of trying to copy the parameter by value, copy it by reference, i.e.:
BOOL CPublicRouteNodeList::Write( ofstream& oFile )
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page