How to do nested initializer_lists in visual C++ 2013

假装没事ソ 提交于 2019-12-05 05:45:24
template<class T>
std::initializer_list<T> list( std::initializer_list<T>&& l ) { return std::move(l); }

or something similar may at least give you the workaround:

print( { list({1,2}), list({3,2,1}) } );

the syntax can be messed around with (l*{2,1}) in a few ways as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!