2
Vote

cpplinq-20140919 compile error with VS2012 Update4

description

Inlcuding cpplinq.hpp cpplinq-20140919 causes the following error (it works with cpplinq-20140323):

1>d:\software\cpplinq\cpplinq\cpplinq.hpp(337): error C2070: 'unknown': illegal sizeof operand
1> d:\software\cpplinq\cpplinq\cpplinq1.hpp(1950) : see reference to class template instantiation 'cpplinq::detail::opt<TValue>' being compiled
1> with
1> [
1> TValue=unknown
1> ]
1> d:\software\cpplinq\cpplinq\cpplinq.hpp(1999) : see reference to class template instantiation 'cpplinq::detail::select_range<TRange,TPredicate>' being compiled
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\type_traits(1446): error C2070: 'unknown': illegal sizeof operand
1> d:\software\cpplinq\cpplinq\cpplinq.hpp(338) : see reference to class template instantiation 'std::alignment_of<_Ty>' being compiled
1> with
1> [
1> _Ty=unknown
1> ]
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\type_traits(1466): warning C4200: nonstandard extension used : zero-sized array in struct/union
1> Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
1> d:\software\cpplinq\cpplinq\cpplinq1.hpp(341) : see reference to class template instantiation 'std::_Align_type<_Ty,_Len>' being compiled
1> with
1> [
1> _Ty=char,
1> _Len=0
1> ]
1>d:\software\cpplinq\cpplinq\cpplinq.hpp(342): error C2229: struct 'cpplinq::detail::opt<TValue>' has an illegal zero-sized array
1> with
1> [
1> TValue=unknown
1> ]

comments

mcatanzariti wrote Aug 6, 2015 at 5:54 PM

Same issue here