After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 727077 - Really honour c++11 compilers
Really honour c++11 compilers
Product: gnote
Classification: Applications
Component: build
git master
Other FreeBSD
: Normal major
: ---
Assigned To: gnote-maint
Depends on:
Reported: 2014-03-26 07:03 UTC by Gustau Pérez i Querol
Modified: 2014-03-26 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---

patch for src/notebase.cpp (298 bytes, text/x-c++src)
2014-03-26 07:03 UTC, Gustau Pérez i Querol

Description Gustau Pérez i Querol 2014-03-26 07:03:31 UTC
Created attachment 272969 [details]
patch for src/notebase.cpp

In src/notebase.cpp it is checked for a c++11 compliant compiler, but the file doesn't really honour HAVE_CXX11 because it misses to include config.h and so the build breaks if the compiler doesn't have tr1 namespace, like clang. 

The simple attached patch fixes that.
Comment 1 Aurimas Černius 2014-03-26 20:39:36 UTC
Thanks for patch. Will try to improve this, so it does not happen again.