• Advertisement
Sign in to follow this  

Assignment with Initialization Buffer

This topic is 1554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm pleased to see the List Factory take a pointer to a buffer created for its initialization.  What do you think about also allowing the initialization-style assignment?

 

For instance:

array<int> a = {1, 2, 3, 4};

// Some time later...
a = {5, 6, 7, 8};

It seems like the compiler could set up the same buffer and pass it to a special assignment operator designed to handle the buffer.

Share this post


Link to post
Share on other sites
Advertisement

No problem.

 

The to-do list on the work in progress is unfortunately not up to date. There are a lot of things there that have already been implemented, and also a lot of new things that I have on my to-do list but isn't listed there.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement