Code Monkey home page Code Monkey logo

Comments (4)

samhocevar avatar samhocevar commented on May 23, 2024

Note from another Win32 user: the warnings only occur in Debug builds as far as I know. In Release builds, once the optimiser kicks in, it understands that the buffers aren’t actually used at all, and the warnings disappear.

If you’re trying to build PEGTL with Visual Studio 2013, I believe it’s basically hopeless. There is no way VS2013 can understand the code. From my last attempts, here are the necessary features that are missing: nullptr, constructor inheritance, deleted default members, SFINAE based on decltype, templated "using", template template parameters.

If you are using Visual Studio 2015, the code should compile just fine. I have a forked repository with a .sln and the necessary .vcxproj.

from pegtl.

ColinH avatar ColinH commented on May 23, 2024

Assuming that Sam's post explains what's going on I'm closing this issue; we are however following up on this and will send a bug report in the direction of MS regarding the wrong warning.

The new PEGTL will never work on VS2013, but we are interested in VS2015 compatibility, and thanks to previous help and feedback from Sam it does actually work now.

from pegtl.

CaptainZippy avatar CaptainZippy commented on May 23, 2024

Thanks for the explanation. If it wasn't a big deal, it would be nice not to have to rely on newer C++ features but I appreciate that there is a tradeoff and working around missing features can be pretty tedious.

from pegtl.

d-frey avatar d-frey commented on May 23, 2024

In order to report to problem towards Microsoft: Could you please check if the following program produces the same warning in Debug-mode? And if it can be reduced further? TIA!

void dummy( int ) {}

template< int... Is >
void test()
{
  using swallow = bool[];
  (void)swallow{ ( dummy( Is ), true )... };
}

int main()
{
  test< 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 >();
}

from pegtl.

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.