dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.02 seconds.

  1. Thread: fallthrough

    by 2kaud
    Replies
    9
    Views
    686

    Re: fallthrough

    if I'm reading the code right, you could consider something like



    const char types[] = "fzfe ffyf";

    int var1, var2, var3, var4, var5, var6, var7, var8, var9, var10;

    // Array of...
  2. Thread: fallthrough

    by 2kaud
    Replies
    9
    Views
    686

    Re: fallthrough

    But even using case fall-throughs, the code can be simplified as



    switch (argc) {
    case 9: linkid = (types[8] == 'f') ? (int)argv[8]->f : argv[8]->i;
    case 8: linkset = (types[7] ==...
  3. Thread: fallthrough

    by 2kaud
    Replies
    9
    Views
    686

    Re: fallthrough

    Not quite. Only a quite small part of VS2017 is implemented in VS2015. To get the full c++17 implementation, you need the latest version of VS2017 (15.7). Even early versions of VS2017 didn't fully...
  4. Thread: fallthrough

    by 2kaud
    Replies
    9
    Views
    686

    Re: fallthrough

    Yes, there's lots of 'goodies' in c++17! :) Unfortunately, for pre c++17 compilers, you can't even define a null macro for [[fallthrough]] as an identifier can't start with a [ Doh!

    For info about...
Results 1 to 4 of 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)