C++ Standard excerpt:
14.6.1 Locally declared names [temp.local]
Like normal (non-template) classes, class templates have an
injected-class-name (Clause 9). The injected-class-name can be used
with or without a template-argument-list. When it is used without a
template-argument-list, it is equivalent to the injected-class-name
followed by the template-parameters of the class template enclosed in
<>. When it is used with a template-argument-list, it refers to the
specified class template specialization, which could be the current
specialization or another specialization.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I1c0c104431f7cf57806a66ed1bce964c007f2c47
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7527
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10762
Tested-by: jenkins <jenkins@lttng.org>
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonFieldClass& operator=(const CommonFieldClass<OtherLibObjT>& fc) noexcept
+ CommonFieldClass& operator=(const CommonFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisBorrowedObj::operator=(fc);
return *this;
{
_ThisBorrowedObj::operator=(fc);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonIntegerFieldClass&
- operator=(const CommonIntegerFieldClass<OtherLibObjT>& fc) noexcept
+ CommonIntegerFieldClass& operator=(const CommonIntegerFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonFieldClass::operator=(fc);
return *this;
{
_ThisCommonFieldClass::operator=(fc);
return *this;
private:
using typename internal::BorrowedObj<LibObjT>::_ThisBorrowedObj;
using typename internal::BorrowedObj<LibObjT>::_LibObjPtr;
private:
using typename internal::BorrowedObj<LibObjT>::_ThisBorrowedObj;
using typename internal::BorrowedObj<LibObjT>::_LibObjPtr;
- using _ThisConstEnumerationFieldClassMapping = ConstEnumerationFieldClassMapping<LibObjT>;
public:
using RangeSet = typename std::conditional<
public:
using RangeSet = typename std::conditional<
- ConstEnumerationFieldClassMapping(
- const _ThisConstEnumerationFieldClassMapping& mapping) noexcept :
+ ConstEnumerationFieldClassMapping(const ConstEnumerationFieldClassMapping& mapping) noexcept :
_ThisBorrowedObj {mapping}
{
}
_ThisBorrowedObj {mapping}
{
}
- _ThisConstEnumerationFieldClassMapping&
- operator=(const _ThisConstEnumerationFieldClassMapping& mapping) noexcept
+ ConstEnumerationFieldClassMapping&
+ operator=(const ConstEnumerationFieldClassMapping& mapping) noexcept
{
_ThisBorrowedObj::operator=(mapping);
return *this;
{
_ThisBorrowedObj::operator=(mapping);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonBaseEnumerationFieldClass&
+ CommonBaseEnumerationFieldClass&
operator=(const CommonBaseEnumerationFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonIntegerFieldClass::operator=(fc);
operator=(const CommonBaseEnumerationFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonIntegerFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonEnumerationFieldClass&
+ CommonEnumerationFieldClass&
operator=(const CommonEnumerationFieldClass<OtherLibObjT, MappingT>& fc) noexcept
{
_ThisCommonEnumerationFieldClass::operator=(fc);
operator=(const CommonEnumerationFieldClass<OtherLibObjT, MappingT>& fc) noexcept
{
_ThisCommonEnumerationFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonStructureFieldClass<LibObjT>&
- operator=(const CommonStructureFieldClass<OtherLibObjT>& fc) noexcept
+ CommonStructureFieldClass& operator=(const CommonStructureFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonFieldClass::operator=(fc);
return *this;
{
_ThisCommonFieldClass::operator=(fc);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonArrayFieldClass& operator=(const CommonArrayFieldClass<OtherLibObjT>& fc) noexcept
+ CommonArrayFieldClass& operator=(const CommonArrayFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonFieldClass::operator=(fc);
return *this;
{
_ThisCommonFieldClass::operator=(fc);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonStaticArrayFieldClass<LibObjT>&
+ CommonStaticArrayFieldClass&
operator=(const CommonStaticArrayFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonArrayFieldClass::operator=(fc);
operator=(const CommonStaticArrayFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonArrayFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonDynamicArrayWithLengthFieldClass<LibObjT>&
+ CommonDynamicArrayWithLengthFieldClass&
operator=(const CommonDynamicArrayWithLengthFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonArrayFieldClass::operator=(fc);
operator=(const CommonDynamicArrayWithLengthFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonArrayFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonOptionFieldClass& operator=(const CommonOptionFieldClass<OtherLibObjT>& fc) noexcept
+ CommonOptionFieldClass& operator=(const CommonOptionFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonFieldClass::operator=(fc);
return *this;
{
_ThisCommonFieldClass::operator=(fc);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonOptionWithSelectorFieldClass&
+ CommonOptionWithSelectorFieldClass&
operator=(const CommonOptionWithSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonOptionFieldClass::operator=(fc);
operator=(const CommonOptionWithSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonOptionFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonOptionWithBoolSelectorFieldClass<LibObjT>&
+ CommonOptionWithBoolSelectorFieldClass&
operator=(const CommonOptionWithBoolSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonOptionWithSelectorFieldClass::operator=(fc);
operator=(const CommonOptionWithBoolSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonOptionWithSelectorFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonOptionWithIntegerSelectorFieldClass&
+ CommonOptionWithIntegerSelectorFieldClass&
operator=(const CommonOptionWithIntegerSelectorFieldClass<OtherLibObjT, RangeSetT>& fc) noexcept
{
_ThisCommonOptionWithSelectorFieldClass::operator=(fc);
operator=(const CommonOptionWithIntegerSelectorFieldClass<OtherLibObjT, RangeSetT>& fc) noexcept
{
_ThisCommonOptionWithSelectorFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonVariantFieldClassOption<LibObjT>&
+ CommonVariantFieldClassOption&
operator=(const CommonVariantFieldClassOption<OtherLibObjT>& fc) noexcept
{
_ThisBorrowedObj::operator=(fc);
operator=(const CommonVariantFieldClassOption<OtherLibObjT>& fc) noexcept
{
_ThisBorrowedObj::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- ConstVariantWithIntegerSelectorFieldClassOption<LibObjT>&
+ ConstVariantWithIntegerSelectorFieldClassOption&
operator=(const ConstVariantWithIntegerSelectorFieldClassOption<OtherLibObjT>& fc) noexcept
{
_ThisBorrowedObj::operator=(fc);
operator=(const ConstVariantWithIntegerSelectorFieldClassOption<OtherLibObjT>& fc) noexcept
{
_ThisBorrowedObj::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonVariantFieldClass&
- operator=(const CommonVariantFieldClass<OtherLibObjT>& fc) noexcept
+ CommonVariantFieldClass& operator=(const CommonVariantFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonFieldClass::operator=(fc);
return *this;
{
_ThisCommonFieldClass::operator=(fc);
return *this;
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- CommonVariantWithoutSelectorFieldClass<LibObjT>&
+ CommonVariantWithoutSelectorFieldClass&
operator=(const CommonVariantWithoutSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonVariantFieldClass::operator=(fc);
operator=(const CommonVariantWithoutSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonVariantFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonVariantWithSelectorFieldClass&
+ CommonVariantWithSelectorFieldClass&
operator=(const CommonVariantWithSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonVariantFieldClass::operator=(fc);
operator=(const CommonVariantWithSelectorFieldClass<OtherLibObjT>& fc) noexcept
{
_ThisCommonVariantFieldClass::operator=(fc);
}
template <typename OtherLibObjT>
}
template <typename OtherLibObjT>
- _ThisCommonVariantWithIntegerSelectorFieldClass&
+ CommonVariantWithIntegerSelectorFieldClass&
operator=(const CommonVariantWithIntegerSelectorFieldClass<OtherLibObjT, OptionT>& fc) noexcept
{
_ThisCommonVariantWithSelectorFieldClass::operator=(fc);
operator=(const CommonVariantWithIntegerSelectorFieldClass<OtherLibObjT, OptionT>& fc) noexcept
{
_ThisCommonVariantWithSelectorFieldClass::operator=(fc);