From af8be96595980c0f17ef84b9f965f75cc42bcd60 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Thu, 28 Sep 2017 07:55:34 -0700 Subject: [PATCH] adjust a code comment in offset_based_getter --- include/boost/pfr/detail/offset_based_getter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/pfr/detail/offset_based_getter.hpp b/include/boost/pfr/detail/offset_based_getter.hpp index 200139a4..4b71e1ec 100644 --- a/include/boost/pfr/detail/offset_based_getter.hpp +++ b/include/boost/pfr/detail/offset_based_getter.hpp @@ -64,7 +64,7 @@ class offset_based_getter { template static std::ptrdiff_t offset() { constexpr tuple_of_aligned_storage_t layout{}; - // TODO: Do modern compilers optimize `layout` object out of the binary? + // TODO: Do all targetted compilers optimize `layout` object out of the binary? (gcc and clang seem to do so) // Ideally this pointer diff reduces to a constant and this call gets inlined. // But since we are doing reinterpret cast, I don't think we can use `constexpr` to ensure that. //