fork download
  1. #include <tuple>
  2.  
  3. struct Something {};
  4. struct Error {};
  5.  
  6. std::tuple<Something, Error> MakeSomething()
  7. {
  8. return std::make_tuple(Something(), Error());
  9. }
  10.  
  11. int main()
  12. {
  13. Something s1;
  14. std::tie(s1, std::ignore) = MakeSomething();
  15. }
  16.  
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty