Skip to content

Comments

Fixed implementation of fexists.#85

Open
gbrsales wants to merge 1 commit intomgymrek:masterfrom
gbrsales:fexists
Open

Fixed implementation of fexists.#85
gbrsales wants to merge 1 commit intomgymrek:masterfrom
gbrsales:fexists

Conversation

@gbrsales
Copy link

g++ 6.2.0 (Ubuntu Yakkety) rejects the current implementation with the following message:

cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return

An explicit call to the good() method of ifstream takes care of the problem.

g++ 6.2.0 (Ubuntu Yakkety) rejects the current implementation with the
following message:

```
cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return
```

An explicit call to the `good()` method of `ifstream` takes care of
the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant