Menu

#97 Clang reveals minor syntax error - easy fix.

3.0.0
closed-fixed
nobody
5
2021-04-06
2019-09-20
Anonymous
No

Compiling with Clang++ I got an error. I googled it and it looks like clang is being more strict than gcc but it is correct. You have to explicitly give the namespaces in this case. Here's a link discussing the error I found: http://docwiki.embarcadero.com/RADStudio/Rio/en/Explicit_instantiation_of_%27namespace::templated_class%27_must_occur_in_namespace_%27namespace%27_(C%2B%2B)

Changes Required (DataTypes):

KFIXED.cpp, lines 332-334

template class KFIXED<kint16, 3="">;
=>template class KDIS::DATA_TYPE::KFIXED<kint16, 3="">;
template class KFIXED<kint16, 8="">;
=> template class KDIS::DATA_TYPE::KFIXED<kint16, 8="">;
template class KFIXED<kint8, 3="">;
=> template class KDIS::DATA_TYPE::KFIXED<kint8, 3="">;</kint8,></kint8,></kint16,></kint16,></kint16,></kint16,>

LE_Vector.cpp, lines 298-299

template class LE_Vector<kfixed16_3>;
=> template class KDIS::DATA_TYPE::LE_Vector<kfixed16_3>;
template class LE_Vector<kfixed8_3>;
=> template class KDIS::DATA_TYPE::LE_Vector<kfixed8_3>;</kfixed8_3></kfixed8_3></kfixed16_3></kfixed16_3>

Discussion

  • Karl  Jones

    Karl Jones - 2019-09-23

    Oh thanks. Ill take a look

     
  • Karl  Jones

    Karl Jones - 2021-04-06
    • status: open --> closed-fixed
     
  • Karl  Jones

    Karl Jones - 2021-04-06
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB