$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [Units] Runtime dimension check
From: Thomas Taylor (thomas.taylor_at_[hidden])
Date: 2009-09-01 05:10:47
Hi all!
Is there an easy way to check if two quantities have the same dimension?
E. g. a user enters a weight in tons and asks for a conversion to kilograms.
So now at run time I would like to know if tons and kilograms have the same
dimensions (i. e. are convertable) or not (illegal conversion).
Thanks,
Thomas