Skip to content

Commit

Permalink
adjust a code comment in offset_based_getter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Sep 28, 2017
1 parent 3aba48c commit af8be96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/pfr/detail/offset_based_getter.hpp
Expand Up @@ -64,7 +64,7 @@ class offset_based_getter {
template <std::size_t idx>
static std::ptrdiff_t offset() {
constexpr tuple_of_aligned_storage_t<S> 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.
//
Expand Down

0 comments on commit af8be96

Please sign in to comment.