Ticket #22927 (closed enhancement: fixed)
newmat 10 please enable the use of namespace
|Reported by:||slask@…||Owned by:||jameskyle@…|
Newmat is capable of using c++ namespaces. This needs to be enabled during build, otherwise one gets linker errors if one uses the namespace in user code.
Namespaces is a good thing, and should in my opinion be enabled by default for these kind of packages. I understand if turning it on breaks other peoples build, but in that case one may use a variant.
I suggest that the use of namespace is turned on, and if this is not possible because of breaking other applications, adding a variant.
I made the change locally with the "port edit" command, appending the lines configure.cxxflags-append -Duse_namespace to the portfile.