template <typename Type>
struct BasicType
{
- typedef Type HolderType;
- typedef Type PassingType;
+ using HolderType = Type;
+ using PassingType = Type;
};
// For complex types that are copied into the message,
template <typename Type>
struct ComplexType
{
- typedef Type HolderType;
- typedef const Type& PassingType;
+ using HolderType = Type;
+ using PassingType = const Type&;
};
// For complex types that are owned by the message,
template <typename Type>
struct OwnedType
{
- typedef OwnerPointer<Type> HolderType;
- typedef OwnerPointer<Type>& PassingType;
+ using HolderType = OwnerPointer<Type>;
+ using PassingType = OwnerPointer<Type>&;
};