Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Donnerstag, 28. Mai 2015 um 23:23:07, schrieb pdv pdvissch...@edpnet.be On 19/05/15 11:25, Jean-Marc Lasgouttes wrote: Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Jean-Marc Lasgouttes
Le 28/05/2015 23:23, pdv a écrit : Starting with commit b596330 lyx fails to compile with cmake/xcode. This seems to be due to boost::next having been replaced by next and this generates ambiguous call to 'next' semantic issues, one of the 2 possibilities being the next in lyxalgo.h mentioned in

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Freitag, 29. Mai 2015 um 19:52:03, schrieb Jean-Marc Lasgouttes lasgout...@lyx.org Le 28/05/2015 23:23, pdv a écrit : Starting with commit b596330 lyx fails to compile with cmake/xcode. This seems to be due to boost::next having been replaced by next and this generates ambiguous call to

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Freitag, 29. Mai 2015 um 21:59:16, schrieb pdv pdvissch...@edpnet.be On 29/05/15 20:10, Kornel Benko wrote: Am Freitag, 29. Mai 2015 um 19:52:03, schrieb Jean-Marc Lasgouttes lasgout...@lyx.org Le 28/05/2015 23:23, pdv a écrit : Starting with commit b596330 lyx fails to compile with

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Donnerstag, 28. Mai 2015 um 23:23:07, schrieb pdv > On 19/05/15 11:25, Jean-Marc Lasgouttes wrote: > > Hi Georg, > > > > It is not possible currently to compile with gcc 4.6 in C++11 mode > > because lyxalgo.h declares its own next() method. This is because the > > code

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Jean-Marc Lasgouttes
Le 28/05/2015 23:23, pdv a écrit : Starting with commit b596330 lyx fails to compile with cmake/xcode. This seems to be due to "boost::next" having been replaced by "next" and this generates "ambiguous call to 'next'" semantic issues, one of the 2 possibilities being the "next" in lyxalgo.h

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Freitag, 29. Mai 2015 um 19:52:03, schrieb Jean-Marc Lasgouttes > Le 28/05/2015 23:23, pdv a écrit : > > Starting with commit b596330 lyx fails to compile with cmake/xcode. > > This seems to be due to "boost::next" having been replaced by "next" and > > this generates

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-29 Thread Kornel Benko
Am Freitag, 29. Mai 2015 um 21:59:16, schrieb pdv > On 29/05/15 20:10, Kornel Benko wrote: > > Am Freitag, 29. Mai 2015 um 19:52:03, schrieb Jean-Marc Lasgouttes > > > >> Le 28/05/2015 23:23, pdv a écrit : > >>> Starting with commit b596330 lyx fails

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-28 Thread pdv
On 19/05/15 11:25, Jean-Marc Lasgouttes wrote: Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus = 201103L, which is not true for this version of the compiler. I would

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-28 Thread pdv
On 19/05/15 11:25, Jean-Marc Lasgouttes wrote: Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus >= 201103L, which is not true for this version of the compiler. I would

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-22 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Le 19/05/2015 20:34, Georg Baum a écrit : Maybe some of them, but at least the one in tex2lyx should be converted to LYX_USE_CXX11. For me it tests against C++98, and I think this is a given these days. But since I do not understand the subtleties of streams, I

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-22 Thread Jean-Marc Lasgouttes
Le 22/05/2015 08:58, Georg Baum a écrit : This is a misunderstanding: 199711L is the value for C++98 and C++03, therefore __cplusplus 199711L tests for the a standard later than C++03, and the next one happens to be C++11. Therefore, this test is in practice the same test as the ones you

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-22 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Le 19/05/2015 20:34, Georg Baum a écrit : >> >> Maybe some of them, but at least the one in tex2lyx should be converted >> to LYX_USE_CXX11. > > For me it tests against C++98, and I think this is a given these days. > But since I do not understand the subtleties of

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-22 Thread Jean-Marc Lasgouttes
Le 22/05/2015 08:58, Georg Baum a écrit : This is a misunderstanding: 199711L is the value for C++98 and C++03, therefore __cplusplus > 199711L tests for the a standard later than C++03, and the next one happens to be C++11. Therefore, this test is in practice the same test as the ones you

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-20 Thread Jean-Marc Lasgouttes
Le 19/05/2015 20:34, Georg Baum a écrit : Jean-Marc Lasgouttes wrote: Georg, would the following commit suit you? With it, I am able to compile with gcc 4.6 in C++11 mode. I would prefer testing for __cplusplus, since it is defined by the C++ standard. However, since this does not work I do

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-20 Thread Jean-Marc Lasgouttes
Le 19/05/2015 20:34, Georg Baum a écrit : Jean-Marc Lasgouttes wrote: Georg, would the following commit suit you? With it, I am able to compile with gcc 4.6 in C++11 mode. I would prefer testing for __cplusplus, since it is defined by the C++ standard. However, since this does not work I do

Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus = 201103L, which is not true for this version of the compiler. I would propose to replace this test with a test on

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Le 19/05/2015 11:25, Jean-Marc Lasgouttes a écrit : Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus = 201103L, which is not true for this version of the compiler.

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Le 19/05/2015 11:45, Jean-Marc Lasgouttes a écrit : Le 19/05/2015 11:25, Jean-Marc Lasgouttes a écrit : Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus = 201103L,

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Georg, would the following commit suit you? With it, I am able to compile with gcc 4.6 in C++11 mode. I would prefer testing for __cplusplus, since it is defined by the C++ standard. However, since this does not work I do not know of a better way than you

Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus >= 201103L, which is not true for this version of the compiler. I would propose to replace this test with a test on

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Le 19/05/2015 11:25, Jean-Marc Lasgouttes a écrit : Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus >= 201103L, which is not true for this version of the compiler.

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Jean-Marc Lasgouttes
Le 19/05/2015 11:45, Jean-Marc Lasgouttes a écrit : Le 19/05/2015 11:25, Jean-Marc Lasgouttes a écrit : Hi Georg, It is not possible currently to compile with gcc 4.6 in C++11 mode because lyxalgo.h declares its own next() method. This is because the code depends on __cplusplus >= 201103L,

Re: Compilation failure un c++11 mode with gcc 4.6

2015-05-19 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Georg, would the following commit suit you? With it, I am able to > compile with gcc 4.6 in C++11 mode. I would prefer testing for __cplusplus, since it is defined by the C++ standard. However, since this does not work I do not know of a better way than you