|
From: マーズ ho h. k. <ma...@th...> - 2015-03-19 23:49:36
|
Hello Graeme,
why do you need so many strings?
struct T { char arr[4065]; };
or
#include <string>
#include <array>
struct T { std::array<string, 4065> arr { "x", "y" }; };
// wasting 4063 other strings
Graeme Paterson wrote:
> This crashes mingw g++ (GCC) 4.8.1, hangs linux - with
bigger array.
>
>>g++ stringArray.cc
>
> #include <string>
> struct T {
> std::string s[4065];
> };
> int main() {
> T m = {"x", "y"};
> }
>
>
------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel
Website,
> sponsored by Intel and developed in partnership with
Slashdot Media, is your
> hub for all things parallel software development, from
weekly thought
> leadership blogs to news, videos, case studies, tutorials
and more. Take a
> look and join the conversation now.
http://goparallel.sourceforge.net/
> _______________________________________________
> MinGW-users mailing list
> MinGW-
us...@li...
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for
the list etiquette
> may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe
at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also:
> mailto:mingw-users-
re...@li...?subject=unsubscribe
|