Skip to content

Commit

Permalink
Merge pull request #66 from Kojoley/partly-mitigate-bad-clang-inlinin…
Browse files Browse the repository at this point in the history
…g-decision

Partly mitigate bad Clang inlining decision
  • Loading branch information
apolukhin committed May 9, 2019
2 parents 15a846f + dd9b0c9 commit f34376e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/boost/variant/detail/visitation_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ template <
, typename Visitor, typename VoidPtrCV
, typename NoBackupFlag
>
inline typename Visitor::result_type
BOOST_FORCEINLINE typename Visitor::result_type
visitation_impl(
const int internal_which, const int logical_which
, Visitor& visitor, VoidPtrCV storage
Expand Down
6 changes: 3 additions & 3 deletions include/boost/variant/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ class variant
#endif// !defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)

template <typename Visitor, typename VoidPtrCV>
static typename Visitor::result_type
BOOST_FORCEINLINE static typename Visitor::result_type
internal_apply_visitor_impl(
int internal_which
, int logical_which
Expand All @@ -2340,7 +2340,7 @@ class variant
}

template <typename Visitor>
typename Visitor::result_type
BOOST_FORCEINLINE typename Visitor::result_type
internal_apply_visitor(Visitor& visitor)
{
return internal_apply_visitor_impl(
Expand All @@ -2349,7 +2349,7 @@ class variant
}

template <typename Visitor>
typename Visitor::result_type
BOOST_FORCEINLINE typename Visitor::result_type
internal_apply_visitor(Visitor& visitor) const
{
return internal_apply_visitor_impl(
Expand Down

0 comments on commit f34376e

Please sign in to comment.