Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ie5a90126d0c25c92f00dce0af962f1e64048bdbc
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12481
CI-Build: Simon Marchi <simon.marchi@efficios.com>
CommonEnumerationFieldClass addMapping(const bt2c::CStringView label,
const typename Mapping::RangeSet ranges) const
{
+ static_assert(!std::is_const<LibObjT>::value,
+ "Not available with `bt2::Const*EnumerationFieldClass`.");
+
const auto status = internal::CommonEnumerationFieldClassSpec<MappingT>::addMapping(
this->libObjPtr(), label, ranges.libObjPtr());