diff options
Diffstat (limited to 'build2/variable')
-rw-r--r-- | build2/variable | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/variable b/build2/variable index a63b5b4..5b9189c 100644 --- a/build2/variable +++ b/build2/variable @@ -216,7 +216,10 @@ namespace build2 // fit will have to be handled with an extra dynamic allocation. // std::aligned_storage<sizeof (name)>::type data_; - static const size_t size_ = sizeof (data_); + + // VC 19 needs decltype. + // + static const size_t size_ = sizeof (decltype (data_)); // Make sure we have sufficient storage for untyped values. // |