You defined the type manipas a function that takes std::ostreamby reference and returns std::ostreamby reference, but you defined enddto take dxfItemand return dxfItemand is dxfItemnot inferred from std::ostream.
Because of this type of inconsistency, the compiler generates a call to the pattern operator<<, not an overload manip.
, manip :
dxfItem& operator<<(manip x)
{
x(ss);
return *this;
}
a >