Skip to content

Commit 7d7db48

Browse files
Add spaces
Co-authored-by: Christian Parpart <[email protected]>
1 parent 539b53a commit 7d7db48

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ You can forget about the order of parameters in your code
4949
// Create unique structures
5050
namespace tags { struct Speed{}; struct Permittivity{}; struct Permeability{}; }
5151

52-
using Speed = boxed::boxed<double,tags::Speed>;
53-
using Permittivity = boxed::boxed<double,tags::Permittivity>;
54-
using Permeability = boxed::boxed<double,tags::Permeability>;
52+
using Speed = boxed::boxed<double, tags::Speed>;
53+
using Permittivity = boxed::boxed<double, tags::Permittivity>;
54+
using Permeability = boxed::boxed<double, tags::Permeability>;
5555

5656
Speed wave_speed_inside(Permittivity epsilon, Permeability mu)
5757
{
@@ -74,9 +74,9 @@ Speed wave_speed(T t, S s) // recursive variadic function
7474

7575
int main()
7676
{
77-
auto vacuum_permittivity = Permittivity(8.85418781762039e-12);
78-
auto pi = 3.14159265358979323846;
79-
auto vacuum_permeability = Permeability(4 * pi * 1e-7);
77+
constexpr auto vacuum_permittivity = Permittivity(8.85418781762039e-12);
78+
constexpr auto pi = 3.14159265358979323846;
79+
constexpr auto vacuum_permeability = Permeability(4 * pi * 1e-7);
8080

8181
auto speed_one = wave_speed(vacuum_permittivity, vacuum_permeability);
8282
auto speed_two = wave_speed(vacuum_permeability, vacuum_permittivity);

0 commit comments

Comments
 (0)