Thursday, March 13, 2014

Which constructor?

Newsgroup: comp.lang.c++

Subject: Which constructor?

From: ram@...

Date: 13 Mar 2014 12:38:42 GMT



I tried to modify the __gnu_debug string after #include

<debug/string> to get this information, but it did not work,

because I am having problems to print something from inside

of it using ?::std::cerr?.



So, maybe someone here can tell me: What constructor or

method or whatever of the string class is called in the

case of each of the following two object definitions?



#include <string> /* ::std::string */



int main()

{ ::std::string s{ "alpha" };

::std::string t ={ "beta" }; }









via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://ift.tt/1cWJ8yn

View all the progranning help forums at:

http://ift.tt/1dP9txN

No comments:

Post a Comment