Details
Description
Mesos failed to build due to error C3493: 'childRoleLength' cannot be implicitly captured because no default capture mode has been specified on Windows using MSVC. It can be first reproduced on 69e92ae reversion on master branch. Could you please take a look at this isssue? Thanks a lot!
Reproduce steps:
1. git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
3. cd src
4. .\bootstrap.bat
5. cd ..
6. mkdir build_x64 && pushd build_x64
7. cmake ..\src -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 /t:Rebuild
ErrorMessage:
D:\mesos\src\src\tests\hierarchical_allocator_tests.cpp(8455): error C3493: 'childRoleLength' cannot be implicitly captured because no default capture mode has been specified