Skip to content

Commit

Permalink
Merge pull request eclipse-iceoryx#760 from toniglandy1/iox-#759-impr…
Browse files Browse the repository at this point in the history
…ove-Helix-QAC-parsing-coverage

Iox eclipse-iceoryx#759 improve helix qac parsing coverage
  • Loading branch information
mossmaurice committed Apr 30, 2021
2 parents 5b26bb2 + f1a86c0 commit 244d872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iceoryx_utils/include/iceoryx_utils/internal/cxx/variant.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
// Copyright (c) 2021 by Perforce All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -209,7 +210,7 @@ inline const typename internal::get_type_at_index<0, TypeIndex, Types...>::type*
variant<Types...>::get_at_index() const noexcept
{
using T = typename internal::get_type_at_index<0, TypeIndex, Types...>::type;
return const_cast<const T*>(const_cast<variant*>(this)->get_at_index<TypeIndex>());
return const_cast<const T*>(const_cast<variant*>(this)->template get_at_index<TypeIndex>());
}

template <typename... Types>
Expand Down

0 comments on commit 244d872

Please sign in to comment.