1 // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in 2 // the main distribution directory for license terms and copyright or visit 3 // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. 4 5 #pragma once 6 7 #include <type_traits> 8 9 namespace caf { 10 11 template <class T, int Pos> 12 struct sum_type_token {}; 13 14 template <class T, int Pos> pos(sum_type_token<T,Pos>)15constexpr std::integral_constant<int, Pos> pos(sum_type_token<T, Pos>) { 16 return {}; 17 } 18 19 } // namespace caf 20