i've encountered a problem with doxygen documentation.
for my current project, i created a file with constants with the name "constants.hpp", which i also included in my doxygen documentation.
the problem now is, that my constants are considered as functions in the doxygen documentation.
fyi, my constants look like this e.g.:
const double THETA(-90.0);
const short int NB_CAMERAS(4);
...
how can i make these constants aren't considered as functions anymore?
const touble THETA = -90.0; is not an option, because our professor wants all variables are declared with the initializer operator..
#include <iostream>
usingnamespace std;
class A {
int z;
public:
A(int i = 0) : z(i) {
cout << "Constructor (" << z << ")\n";
}
A(const A &a) : z(a.z) {
cout << "Copy Constructor (" << z << ")\n";
}
A& operator=(const A &a) {
z = a.z;
cout << "Assignment operator (" << z << ")\n";
return *this;
}
};
int main() {
{
A a;
A b(5);
A c(b);
a = c;
}
cout << endl;
{
A a;
A b = 5;
A c = b;
a = c;
}
return 0;
}