Topic: OOPS, sorry for extra *'s (was Thoughts on N4542 std::variant


Author: Larry Evans <cppljevans@suddenlink.net>
Date: Tue, 22 Sep 2015 04:51:15 -0500
Raw View
On 09/22/2015 04:39 AM, Larry Evans wrote:
[snip]
>
> Does this mean that instead of:
>
>   * using v_int_int_t= *
>   *   variant          *
>   *   < int            *
>   *   , int            *
>   *   >;               *
>
Sorry for those extra *'s.  I was trying to emulate the
way Michael highlighted your code, but apparently my
mailer doesn't behave the same as Michael's.  Here's
the reformatted code:

  using v_int_int_t=
    variant
    < int
    , int
    >;
   enum v_indices{v_ndx0,v_ndx1};
   using v_int_int_t=
     variant
     < key_val<std::integral_constant<v_indices,v_ndx0>,int>
     , key_val<std::integral_constant<v_indices,v_ndx1>,int>
     >;
   using v_ndx1_int_t=
     key_val<std::integral_constant<v_indices,1>,int>;
   v_int_int_t v_int_int_v=
     v_ndx1_int_t{};
   v_ndx1_int_t v_ndx1_int_v=
     get<v_ndx1_int_t>(v_int_int_v);


--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.