![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
C++0x; string literals and initializers
Consider,
array <char, 4> a1 = {'a', 'b', 'c', '\0'}; // ok array <char, 4> a2 = "abc"; // error Could "abc" be made equivalent to {'a', 'b', 'c', '\0'} to make this use-case work? Also consider, template <class T> void foo (initializer_list <T> i) {...} foo ({'a', 'b', 'c', '\0'}); // ok in C++0x foo ("abc"); // error in C++0x? Regards, Vidar Hasfjord -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|