aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-06-28 13:00:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-01 15:46:53 +0300
commitec7b7e37ce97d25adc209befb2c12cf16eb06ef1 (patch)
treebcb5b911b0d6579cf1d8c2e6ca4ac13383ca08f9 /build2/variable
parent86db4fb7388285adc24e3aa6eb3f7ec68efd15f4 (diff)
Port to MSVC
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable5
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.
//