Re: [Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and ap
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-11-11 08:06:44
|
Are you using latest version of CppCMS 1.0.2, because it was fixed in there http://cppcms.com/wikipp/en/page/releases_1x#Version.1.0.2 If it is the latest version what is the content of the cppcms/config.h where CPPCMS_TYPEOF is defined? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: SIMON Allan <All...@su...> >To: "cpp...@li..." <cpp...@li...> >Sent: Sunday, November 11, 2012 8:12 AM >Subject: [Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and application with > > > >Hello > >Basically if I compile cppcms without the -std=C++11 options and after I compile an application that use a foreach in the templates (which will generate a CPPCMS_TYPEOF) with -std=C++11 I will get this kind of errors (if I compile both with the -std=c++11 options i get no problems) > > >tatowiki/app/src/views/webs/history/all_versions_of.tmpl:11:9: error: use of undeclared identifier 'typeof' > for(CPPCMS_TYPEOF((content.changes).begin()) change_ptr=(content.changes).begin(),change_ptr_end=(content.changes).end();change_ptr!=change_ptr_end;++change_ptr) { > ^ >/usr/local/include/cppcms/base_view.h:67:27: note: expanded from: ># define CPPCMS_TYPEOF(x) typeof(x) > > >I think it comes from the fact that the decision on what to map CPPCMS_TYPEOF is made during the compilation of cppcms > > >https://github.com/allan-simon/tatowiki for example fails like described below (if you need some code to test it) > > > > >Regards, > >Allan SIMON >Tatoeba.org Administrator (Sysko) > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |