Text output support added for quantity
This commit is contained in:
1 parent
fe6a5da3f4
commit
9a9abca81d
7 files changed
+316
-43
No files matched your search
@@ -21,6 +21,7 @@
|
||||
// SOFTWARE.
|
||||
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -68,6 +69,12 @@ namespace units {
|
||||
}
|
||||
return first1 == last1 && first2 != last2;
|
||||
}
|
||||
|
||||
template<class Traits>
|
||||
friend std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const basic_fixed_string& txt)
|
||||
{
|
||||
return os << txt.c_str();
|
||||
}
|
||||
};
|
||||
|
||||
template<typename CharT, std::size_t N>
|
||||
|
||||
Reference in new issue
Block a user