Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C cmsgemos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmsgemonline
  • gem-daq
  • cmsgemos
  • Issues
  • #165

Closed
Open
Created Mar 09, 2021 by Laurent Petre@lpetreOwner

String formatting

Summary

The current code base currently uses a mix of stringstream and xDAQ toolbox::toString (and maybe more) in order to format string. The format is unpractical and the latter not type-safe. One should do better.

I'm proposing to use the {fmt} library everywhere. It provides type-safe formatting functions with a syntax close to Python's format. Moreover, its API is compatible with the C++20 std::format API that should be available sooner or later, preventing future maintenance concerns.

What is the expected correct behavior?

Use the same, type-safe, string formatting library everywhere.

Embed {fmt} into the repository and convert all stringstream and toolbox::toString calls to {fmt} calls.

Assignee
Assign to
Time tracking