Hi !
I have a project that compiles fine with VS 2010.
As I compile it with VS 2012 it generates the entitled error.
Why ?
Thanks
Printable View
Hi !
I have a project that compiles fine with VS 2010.
As I compile it with VS 2012 it generates the entitled error.
Why ?
Thanks
I didn't change anything.
As I begin typing #include <ini ... The editor doesn't suggest initializer_list
The code is :
When I include <initializer_list> I get the error, but no error on the code.Quote:
class A : public std::list<B> {
public:
A(std::initializer_list<B> l) {
insert(end(), l.begin(), l.end());
}
A() : std::list<B>() {}
};
When I remove the include I get errors on each line of the code
It's <initializer_list>. So I do not understand.
Now that I'm on a computer, I can look into this.
Looks like it wasn't in the 2010 and 2012 VC release version, but is in VC 2013.
http://msdn.microsoft.com/en-us/libr.../hh567368.aspx
Apparently the initializer_list header was inadvertently added to the VC 2010 RC, but then removed for the release.
http://connect.microsoft.com/VisualS...ease-candidate
According to the last link, it never worked anyway (because even though the file was present in the RC, the compiler didn't support the feature).