← Back to team overview

widelands-dev team mailing list archive

Re: clang compilation trouble

 

> 
> src/logic/widelands.h:68:19: error: constexpr variable 'INVALID_INDEX' must be initialized by a constant
>       expression
> constexpr uint8_t INVALID_INDEX = std::numeric_limits<uint8_t>::max();
> 

seems like you are not using the http://libcxx.llvm.org/ which you should always use with clang. It defines max to be a constexpr.


> It was fixed with adding 255 instead of std::numeric_limits<uint8_t>::max();
> 
> and second problem:
> 
> src/ui_fsmenu/loadreplay.cc:221:68: error: use of undeclared identifier 'fn'
>                        [](const std::string& fn) {return boost::ends_with(fn, REPLAY_SUFFIX);});

that makes no sense to me. Seems like a clang bug. Which clang version is that?

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Follow ups

References