Rybadour / Spider-Fish

A simple Bullet Hell Shooter.
socr.uwindsor.ca/~giga
8 stars 4 forks source link

`typename decltype(...)` fails to compile on clang. #34

Closed erisco closed 13 years ago

erisco commented 13 years ago

From Iterator2D.h

    typename decltype(Iterator2DTraits<It>::SubIt) _subIt;
    typename decltype(Iterator2DTraits<It>::SubIt) _subItEnd;

Fails to compile in clang. Removing the "typename" keyword resolves the compilation issue. However, VS10 requires "typename" to be there else it won't compile.

Therefore, either conditional compile directives are needed or decltype needs to go from this altogether.

erisco commented 13 years ago

Issue should be resolved on branch issue_34. Please verify this Jeff.

madebyjeffrey commented 13 years ago

This currently compiles on the mac on master. Add an #ifdef around it for visual studio, or APPLE as appropriate.