-
Hello, I tried to get quantity kinds working from the Quantity Kinds documentation, however the compiler always complains about an Compiler-explorer: https://compiler-explorer.com/z/9PorMr417 #include <units/isq/si/length.h>
#include <units/kind.h>
using namespace units;
namespace si = units::isq::si;
struct radius : kind<radius, si::dim_length> {};
int main()
{
using namespace si::references;
quantity_kind<radius, si::kilometre, double> d(123 * km);
} Error:
Am I maybe missing some include? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, Thanks for trying out the library. Yes, you are missing a |
Beta Was this translation helpful? Give feedback.
-
I guess I could have figured that one out from the glide_computer example. There Thank you very much for your fast answer |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for trying out the library. Yes, you are missing a
units/quantity_kind.h
header file. See here: https://compiler-explorer.com/z/3Mz6eMdsE.