Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathのoperator string_type()に関する例がおかしい #148

Open
vyv03354 opened this issue Dec 27, 2017 · 0 comments
Open

pathのoperator string_type()に関する例がおかしい #148

vyv03354 opened this issue Dec 27, 2017 · 0 comments

Comments

@vyv03354
Copy link

    std::basic_ofstream<path::value_type> file( name ) 

basic_ofstreamの型パラメーターはファイル名と関係ないので、型パラメーターにpath::value_typeを渡すのはおかしくないですか?

C++17で型パラメーターとは無関係にconst path&const path::value_type*を引数に取るオーバーロードが追加されたので、普通に

    std::ofstream file( path ) 

    std::ofstream file( name ) 

と書けばいいと思っていたのですが、何か勘違いしているでしょうか。

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

No branches or pull requests

1 participant