POV-Ray : Newsgroups : povray.off-topic : I'll bite... : Re: I'll bite... Server Time
5 Sep 2024 15:27:53 EDT (-0400)
  Re: I'll bite...  
From: Warp
Date: 19 Jun 2009 16:25:12
Message: <4a3bf428@news.povray.org>
S??awomir Szczyrba <cre### [at] ofthenight> wrote:
> Search for 'C99 designated initializers'

  The next C++ standard will (as far as I know) not implement designated
initializers. However, it will enhance initialization lists in other ways.
For example, it will be possible to do things like this:

    std::vector<int> v = { 1, 2, 3, 4, 5 };

or like this:

    struct A { int i; double d; };

    A foo() { return { 1, 2.5 }; }

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.