From 257d86185ac1c437191307eb0104b68ee52f24f6 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 9 May 2020 13:12:35 +0200 Subject: [PATCH] Compilation Errors chapter added to FAQ --- docs/faq.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/faq.rst b/docs/faq.rst index 3224b61d..41295833 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -75,4 +75,23 @@ to obey the rules and be consistent with ISO specifications. :term:`International System of Quantities`. It is a style guide for the use of physical quantities and units of measurement, formulas involving them, and their corresponding units, in scientific and educational documents for worldwide use. - Read more on `Wikipedia `_. \ No newline at end of file + Read more on `Wikipedia `_. + +Compilation Errors +------------------ + +error: reference to ‘time’ is ambiguous +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Unfortunately, if `using-directives `_ +(i.e. :expr:`using namespace units::physical::si`) are being used, `units::physical::si::time` will +collide with C `time `_ function. In such a case the library's +`time` function needs to be prefixed with at least one (or all) namespace names. + +error: template argument 1 is invalid +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Again, usage of :expr:`using namespace units` +`using-directive `_ may result in +the collision between `units::exp` class template and C `exp `_ +function. In such a case the library's `exp` class template needs to be prefixed with `units` namespace name.