[Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and applic
Brought to you by:
artyom-beilis
From: SIMON A. <All...@su...> - 2012-11-11 06:29:10
|
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) |