mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
Merge pull request #480 from bourumir-wyngs/master
Fix "control reaches end of non void function" error.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include <mp-units/systems/international/international.h>
|
#include <mp-units/systems/international/international.h>
|
||||||
#include <mp-units/systems/isq/space_and_time.h>
|
#include <mp-units/systems/isq/space_and_time.h>
|
||||||
#include <mp-units/systems/si/unit_symbols.h>
|
#include <mp-units/systems/si/unit_symbols.h>
|
||||||
|
#include <cassert>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
@@ -56,6 +57,7 @@ constexpr const char* to_text(earth_gravity_model m)
|
|||||||
case egm2008_1:
|
case egm2008_1:
|
||||||
return "EGM2008-1";
|
return "EGM2008-1";
|
||||||
}
|
}
|
||||||
|
assert(false && "unsupported enum value");
|
||||||
}
|
}
|
||||||
|
|
||||||
template<earth_gravity_model M>
|
template<earth_gravity_model M>
|
||||||
|
Reference in New Issue
Block a user