Project

General

Profile

Talk #660

bringing physics units to C++

Added by Kretz, Matthias almost 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2014-06-02
Due date:
% Done:

0%

Estimated time:
Talk Author(s):
Presenter:

Description

In the std::chrono talk (#566) we've seen the use of std::ratio for encoding the unit prefix / scale associated with an normal numerical value (i.e. seconds vs. milliseconds vs. days vs. ...). In the following discussion we talked about the power of encoding numeric base-type, physical unit, and scaling in the type as the compiler can thus enforce correct usage of physical units.

A talk could explore existing solutions (if there are any published ones) and/or present how such a solution can be implemented and how it affects application development.


Related issues

Blocked by Talk #794: Templates and Meta-ProgrammingPresented2014-07-222014-12-17Pinke, Christopher

Actions

Also available in: Atom PDF