Jump to content
  • Advertisement
Sign in to follow this  
Jason Goepel

Assignment with Initialization Buffer

This topic is 2099 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!