Giter VIP home page Giter VIP logo

Comments (8)

UMU618 avatar UMU618 commented on June 10, 2024

Boost is compiled with b2.exe cxxstd=20 link=shared runtime-link=shared address-model=64 define=_WIN32_WINNT=0x0601

from parameter.

UMU618 avatar UMU618 commented on June 10, 2024

https://github.com/boostorg/parameter/blob/develop/include/boost/parameter/keyword.hpp#L716

    namespace                                                                \
    {                                                                        \
        ::boost::parameter::keyword<tag_namespace::name> const& name         \
            = ::boost::parameter::keyword<tag_namespace::name>::instance;    \
    }

Add static to this line can fix this issue.

from parameter.

Lastique avatar Lastique commented on June 10, 2024

This seems to be a compiler bug because severity is the variable definition, given that it has initializer.

Please report this to MSVC developers.

from parameter.

UMU618 avatar UMU618 commented on June 10, 2024

Already report here

from parameter.

Lastique avatar Lastique commented on June 10, 2024

I have tried to build the current develop with the command you provided (plus toolset=msvc-14.3) and couldn't reproduce the error.

Could you provide a reproducer?

from parameter.

UMU618 avatar UMU618 commented on June 10, 2024

Sorry, I can't. This problem only arises when the code is sufficiently complex. Our projects have lots of C++ 20 modules, *.ixx. I use Boost.Log in small project, it compiles.

from parameter.

Patschkowski avatar Patschkowski commented on June 10, 2024

As the previous thread was closed by Microsoft due to not enough input being provided by the author, I opened a new one with a small reproducer:

https://developercommunity.visualstudio.com/t/error-C7631:-when-instantiating-template/10476144

from parameter.

Patschkowski avatar Patschkowski commented on June 10, 2024

As the previous thread was closed by Microsoft due to not enough input being provided by the author, I opened a new one with a small reproducer:

https://developercommunity.visualstudio.com/t/error-C7631:-when-instantiating-template/10476144

Microsoft responded that this is not a compiler bug.

from parameter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.