Skip to content

Reuse format w/o "reparsing" it? #269

Description

@ddevienne

With Boost.Format, I can compile the format once, and use it several times.

boost::format fmt("some complex and long format");
for (const auto& item : items) {
  str(fmt % item.arg1 % item.arg2 % ...);
}

Despite CppFormat 2.0 being faster, isn't there an equivalent to the above? Thanks, --DD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions