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....) Jul 7, 2016 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 Nov 8, 2016 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. Nov 8, 2016 at 15:01

2 Answers 2


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


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 and acknowledge you have read our privacy policy.

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