AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
503 stars 336 forks source link

Workaround MSVC issue in tupleToArray #4000

Closed AlexanderSinn closed 3 days ago

AlexanderSinn commented 1 week ago

Summary

MSVC couldn't compile the old version of tupleToArray if the tuple only had one element.

Additional background

See https://godbolt.org/z/bYqhGco99 and https://github.com/Hi-PACE/hipace/pull/1126

Checklist

The proposed changes: