Skip to content

fix #include<string>#2

Open
stasysp wants to merge 1 commit into
PMICources:masterfrom
stasysp:stasysp-strings
Open

fix #include<string>#2
stasysp wants to merge 1 commit into
PMICources:masterfrom
stasysp:stasysp-strings

Conversation

@stasysp

@stasysp stasysp commented Nov 22, 2017

Copy link
Copy Markdown

Iostream header includes string. But to to use std::string, it is nessesary to #include , otherwise the program might not run on different implementations, or even in later versions of the current one.

Iostream header includes string.  But to to use std::string, it is nessesary to  #include <string>, otherwise the program might not run on different implementations, or even in later versions of the current one.
@stasysp

stasysp commented Nov 22, 2017

Copy link
Copy Markdown
Author

@Cadovvl

@PMICources

Copy link
Copy Markdown
Owner

Мне приходят уведомления о новых реквестах, даже если ты меня не упоминаешь: репозиторий мой!

@PMICources

Copy link
Copy Markdown
Owner

Iostream header includes string. But to to use std::string, it is nessesary to #include , otherwise the program might not run on different implementations, or even in later versions of the current one.

There is no iostream library in this header. Meanwhile, there is no include in this file, that guarantee 'string' include.

2 PP.

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.

2 participants