ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

TessellatedItemConverter.h compile C3533 error

Open geobeans opened this issue 7 years ago • 4 comments

when I build SimpleViewerExample by visual stdio 2013,it throw out the C3533 error: e:\prjs\ifcplusplus-master\ifcplusplus\src\ifcpp\geometry\carve\TessellatedItemConverter.h(121): error C3533: “auto”: a parameter cannot have a type that contains 'auto' But compile the same project by vs2017,it success no error! Please tell me how to compile the project using vs2013. thanks!

geobeans avatar Apr 17 '18 06:04 geobeans

The TessellatedItemConverter uses templated lambdas from C++14. You need at least VS 2015 for those.

If I have time in the following days I might be able to write provide a patch on a branch to use explicit types which should compile under older compilers.

loebl avatar Apr 17 '18 16:04 loebl

oh! thank you!!!

geobeans avatar Apr 18 '18 00:04 geobeans

Ok, I changed the lines. It should compile under VS2013 now, but I haven't tested it.

Pull the changes from this branch (it should simply fast forward if you checked out the latest version from this repository): https://github.com/loebl/ifcplusplus/tree/bug/tesselateditemconverter-fully-cxx11-compatible

loebl avatar Apr 18 '18 14:04 loebl

I hava test it! It compiled ok under vs2013, and run ok also! good job!

geobeans avatar Apr 19 '18 06:04 geobeans