Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Project Juggler Project Juggler
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • EIC
  • Project JugglerProject Juggler
  • Issues
  • #87

Closed
Open
Created Mar 21, 2022 by Wouter Deconinck@wdconincOwner

Figure out cleaner solution to #403: non-const in initializer list needs narrowing

Problem: calculations are locally done in double, but need to be cast into float for output, ideally without any effort. We also want users to use nested initializer lists for the components of the output objects. And we don't want lots of warnings (or, even worse, errors in clang that work in gcc).

Too much decltype in !403 (merged)

Maybe add a utility:

namespace eicd {
template <class Vector3, class Float = double>
  Vector3 castToFloatVector(const Float v1, const Float v2, const Float v3) {
    return {static_cast<float>(v1),
            static_cast<float>(v2),
            static_cast<float>(v3)};
  }
}
Assignee
Assign to
Time tracking