Menu

#11 Deactivate GNU extensions compilation

Unstable_(example)
open
nobody
None
1
2016-04-21
2016-04-21
No

Hi,

Please find attach a patch that changes the C++11 standard required for rvalue support from 'gnu++11' to 'c++11'
There is no technical reason to require the non-standard GNU extensions. However, this lead to some issues for user code.

When activating the GNU extensions, some of the extended features of mathgl will also be activated (e.g. typeof support). Unfortunately, since this configuration is reflected in the config.h file, that means any user of the library will have to compile its own code with the GNU extensions flag. Forcing users to use a non-standard dialect of C++ seems a bad idea in my opinion.

Additionally, I prepended the standard flag instead of appending it. This way one can still compile mathgl with GNU extensions if need be by modifying CMAKE_CXX_FLAGS or CXXFLAGS before configuring.

Thanks

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.