Coder Social home page Coder Social logo

Comments (4)

jzmaddock avatar jzmaddock commented on July 18, 2024 1

From Microsoft's docs:

"On ARM and x64 processors, __stdcall is accepted and ignored by the compiler; on ARM and x64 architectures, by convention, arguments are passed in registers when possible, and subsequent arguments are passed on the stack."

Effectively all the calling conventions get mapped to the same thing so you need to disable specialisations on them to prevent duplications.

from type_traits.

zvrba avatar zvrba commented on July 18, 2024

Additional information: I use Visual Studio 15.7.2, toolset v14.1, compiler version string Microsoft(R) C/C++ Optimizing Compiler Version 19.14.26429.4 for x64 and I target C++/CLI for x64. The project is an ordinary C++ project being built as x64 DLL/EXE, with only a couple of files being compiled for C++/CLI (i.e., I have turned on /clr on individual files, not on the whole project).

As I wrote in the mail, stdcall, fastcall and cdecl conventions are also disabled when compiling for x64, regardless of CLI compilation.

from type_traits.

jzmaddock avatar jzmaddock commented on July 18, 2024

Fixed in develop.

from type_traits.

erikeldh avatar erikeldh commented on July 18, 2024

Which version was this fixed in? I'm hitting this in 1.75

boost\type_traits\detail\is_member_function_pointer_cxx_11.hpp(121,4): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
boost\type_traits\detail\is_member_function_pointer_cxx_11.hpp(121,113): error C2953: 'boost::is_member_function_pointer<Ret(__stdcall C::* )(Args...)>': class template has already been defined

from type_traits.

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.