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


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

Re: initializer_list constructor implementation

From Bo Persson <bo@bo-persson.se>
Newsgroups comp.lang.c++
Subject Re: initializer_list constructor implementation
Date 2022-12-19 10:49 +0100
Message-ID <k0aqcqFs99vU1@mid.individual.net> (permalink)
References <5318cc4c-fd12-434d-aa3e-6e4f361241e2n@googlegroups.com> <k08c43Fh735U1@mid.individual.net> <0aeb40fa-6829-4123-94bc-ed718dee6814n@googlegroups.com>

Show all headers | View raw


On 2022-12-18 at 21:40, Pawel Por wrote:
>> std::initializer_list is "magic" in that the compiler knows about it and
>> its connection to brace initializers.
>>
>> Your class lacks this compiler magic, so works differently (=not supported).
> 
> Thank you for response. Is this "magic" somehow available for the users or totally hidden. If so, how can I use it ?

I think it is just triggered by the name std::initializer_list. So not 
really available for user code.

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


Thread

initializer_list constructor implementation Pawel Por <porparek@gmail.com> - 2022-12-18 02:13 -0800
  Re: initializer_list constructor implementation Bo Persson <bo@bo-persson.se> - 2022-12-18 12:33 +0100
    Re: initializer_list constructor implementation Pawel Por <porparek@gmail.com> - 2022-12-18 12:40 -0800
      Re: initializer_list constructor implementation Bo Persson <bo@bo-persson.se> - 2022-12-19 10:49 +0100
        Re: initializer_list constructor implementation Muttley@dastardlyhq.com - 2022-12-19 09:59 +0000

csiph-web