boostorg / boostorg/hof

Boost failed with error C2892 when build with MSVC on windows

Open
#204 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
509
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Hi All,

We tried to build and run hof test for Boost with VS2017 Update 7 on Windows. It failed to build due to the error C2892. Could you please help take a look at this? Thank you!

**Reproduce steps:**

1. git clone -c core.autocrlf=true --recursive https://github.com/boostorg/boost.git D:\Boost\src
2. open a VS 2015 x86 command prompt and browse to D:\Boost\src
3. .\bootstrap
4. .\b2 headers variant=release --build-dir=..\out\x86rel address-model=32
5. .\b2 variant=release --build-dir=..\out\x86rel address-model=32
6. .\b2 -j4 variant=release --build-dir=..\out\x86rel libs\hof\test

**Failures:**
libs\hof\test\lift.cpp(42): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(45): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(46): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(49): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(50): error C2892: a template cannot be a member of a local class

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.