Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++14 and OS X 10.11 #2

Closed
timdecode opened this issue Aug 30, 2016 · 4 comments
Closed

C++14 and OS X 10.11 #2

timdecode opened this issue Aug 30, 2016 · 4 comments

Comments

@timdecode
Copy link
Contributor

It looks like some of the latest commits have started to use some C++14 features, such as variable templates. Out of the box, C++14 is not supported by Unreal (at least on OS X) without rebuilding the build tools.

https://answers.unrealengine.com/questions/340300/can-my-game-be-configured-to-use-c14.html

@timdecode
Copy link
Contributor Author

The error I got was:

error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] FRuntimeMeshVertex<WantsPosition, WantsNormal, WantsTangent, WantsColor, NumWantedUVChannels, NormalTangentType, UVType>::TypeInfo;

(I do not include the line number as I was reordering the declarations in RuntimeMeshGenericVertex.h to get it to compile on OS X)

@timdecode timdecode reopened this Aug 30, 2016
@Koderz
Copy link
Member

Koderz commented Aug 31, 2016

Well, I know I've only attempted to build the past few commits on my primary machine, but there shouldn't be anything in there that requires c++14, and I know I'm building with the stock build config of the engine, but it is MSVC. Unfortunately I don't really have access to an OS X machine right now so I'm limited on my testing abilities there. The file that's from I don't think I've touched recently in master other than moving it into a submodule.

@timdecode
Copy link
Contributor Author

timdecode commented Aug 31, 2016

Thanks! I'll give it another try when I'm on an OS X machine tomorrow.

@timdecode
Copy link
Contributor Author

Never mind, this appears to be an artifact of the changes I made to fix the build errors in RuntimeMeshGenericVertex.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants