3

The (probable) final feature-set for the C++17 ISO standard has been publicized, and among these features is something called structured bindings:

auto [a,b] = /* something like a tuple */;

Are there any compilers that implement this yet? It appears that GCC doesn't even include this feature in their C++1z status table yet, and LLVM lists it but does not yet support it in any version.

Is there a compiler that implements this feature? Preferably I'd like something online e.g. via IDEONE or Wandbox; failing that I'd like something that will work on Debian Linux, and in the last resort I can use Windows.

  • 1
    (I'm not sure if this is exactly the right site for this question....) – Kyle Strand Jul 7 '16 at 19:28
  • I agree (+1); technically, this is the correct site, since the OP is asking for a software recommendaiton. In practise, he is more likely to get knowledgable answers on stackoverflow.com – Mawg Nov 8 '16 at 11:04
  • 1
    @Mawg I am the OP, and the above comment is mine! I just like to express any uncertainty I have about the appropriateness of a question in advance of possibly being told I shouldn't have posted it. – Kyle Strand Nov 8 '16 at 15:01
1

Clang nightlies now work for pairs and tuples, but not for custom structs.

  • This ought to have been a comment, not an answer – Mawg Nov 8 '16 at 11:04
0

GCC 7.2 on Ubuntu 17.10 does with -std=c++17.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.