Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7081

Re: C++0x - nested initializer lists?

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: C++0x - nested initializer lists?
Date 2011-06-23 09:55 -0400
Organization A noiseless patient Spider
Message-ID <itvglc$9f7$1@dont-email.me> (permalink)
References <f4bf2d41-a959-47e4-a6f5-6945c63f9b4a@gc3g2000vbb.googlegroups.com>

Show all headers | View raw


On 6/22/2011 1:15 PM, er wrote:
> This does not compile under gcc-4.4: converting to 'std::tuple<>' from
> initializer list would use explicit constructor. Is it conformant
> anyway? Thanks.
>
>      {
>          typedef std::tuple<s_, int>  t_;
>          typedef std::vector<t_>  v_;
>          v_ v = {
>              {  "a", 1  },
>              {  "b", 2  },
>              {  "c", 3  },
>              {  "d", 4  },
>              {  "e", 5  }
>          };
>      }

What's "s_"?

V
-- 
I do not respond to top-posted replies, please don't ask

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

C++0x - nested initializer lists? er <er.ci.2020@gmail.com> - 2011-06-22 10:15 -0700
  Re: C++0x - nested initializer lists? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-06-23 09:55 -0400
    Re: C++0x - nested initializer lists? er <er.ci.2020@gmail.com> - 2011-06-23 08:03 -0700
  Re: C++0x - nested initializer lists? Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-25 01:25 -0700
  Re: C++0x - nested initializer lists? Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-25 07:01 -0700

csiph-web