Why does this code give an error instead of calling move-constructor?
struct A { }; int main() { A a{A()}; // error: too many initializers for 'A' }
Demo: http://coliru.stacked-crooked.com/a/ce822fcbda0f7db9
Can I call the constructor in the aggregate with uniform initialization?
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1209896/More articles:Show u8 fragment in hexadecimal notation - sliceThe parseInt (1/10000000) function returns 1. Why? - javascriptTesting the line order of text on a web page - Rspec & Capybara on rails - ruby-on-railsOverloaded function evaluated by triple - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1209895/windows-application-that-optionally-writes-to-a-console-in-c&usg=ALkJrhjsGurrHKzepIBpyoQ-Ha4t_g162ACreating a mutable collection from immutable - javaFull screen iOS background image for all screen sizes - iosCoin Exchange Algorithm - javaThe algorithm for choosing the best combination of two lists - optimizationPython Find large number in O (n) time and O (1) memory - pythonAll Articles