Re: [Firebird-devel] C++11 features

2016-09-01 Thread Roman Simakov
I guess atomic also must be very helpful. 2016-09-01 20:37 GMT+03:00 Adriano dos Santos Fernandes : > On 01/09/2016 13:41, Dmitry Yemanov wrote: >> + nullptr and static_assert, maybe also initializer lists and non-static >> member initializers. >> > And override too, which

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Adriano dos Santos Fernandes
On 01/09/2016 13:41, Dmitry Yemanov wrote: > + nullptr and static_assert, maybe also initializer lists and non-static > member initializers. > And override too, which can be easily defined for nothing when not supported (HP aCC) and is a very good tool specially when refactoring code. Adriano

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Dmitry Yemanov
01.09.2016 15:46, Adriano dos Santos Fernandes wrote: > > I see that before VC++ 2015 Update 3, it accepts everything supported > without compiler options, right? Looks so. > So, I think the plan should be: > > - Update Linux prefix files to include -std=c++11 > - Agree on a set of allowed

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Adriano dos Santos Fernandes
On 01/09/2016 09:25, Dmitry Yemanov wrote: > 01.09.2016 14:04, Adriano dos Santos Fernandes wrote: >> MSVC10 supports nothing, and even MSVC12 is also a bit limited in regard >> to MSVC14 and recent g++ and clang++: >> >> https://msdn.microsoft.com/en-us/library/hh567368.aspx > We've agreed on

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Dmitry Yemanov
01.09.2016 14:04, Adriano dos Santos Fernandes wrote: > > MSVC10 supports nothing, and even MSVC12 is also a bit limited in regard > to MSVC14 and recent g++ and clang++: > > https://msdn.microsoft.com/en-us/library/hh567368.aspx We've agreed on MSVC13 for FBv4, so we cannot use features from

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Adriano dos Santos Fernandes
On 31/08/2016 04:54, Dmitry Yemanov wrote: > 31.08.2016 05:14, Adriano dos Santos Fernandes wrote: >> In the code I'm writing, I had good opportunities to use some features >> that the compiler flags we're using disallowed, like lambda and default >> arguments for template parameter. >> >> Also we

Re: [Firebird-devel] C++11 features

2016-09-01 Thread Paul Beach
>As I was said, it would drop out some platforms such as HPUX and Solaris > where compilers don't support C++11 standard. >> Are these platforms that significant anymore for Firebird? Still used (and maintained) by some customers (and IBPhoenix) on 2.5 > Are there more than 1000 Firebird

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Leyne, Sean
>As I was said, it would drop out some platforms such as HPUX and Solaris > where compilers don't support C++11 standard. Are these platforms that significant anymore for Firebird? Are there more than 1000 Firebird deployments on them? Since we are talking about changes which apply to

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Adriano dos Santos Fernandes
On 31/08/2016 08:32, Dimitry Sibiryakov wrote: > 31.08.2016 13:27, Adriano dos Santos Fernandes wrote: >> So why are you developing particular code as pool request in the main >> project? >"We do what we must because we can." (c) > > Ok, I just unsubscribed myself to that particular PR.

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dimitry Sibiryakov
31.08.2016 13:27, Adriano dos Santos Fernandes wrote: > So why are you developing particular code as pool request in the main > project? "We do what we must because we can." (c) -- WBR, SD. -- Firebird-Devel

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Adriano dos Santos Fernandes
On 31/08/2016 08:23, Dimitry Sibiryakov wrote: > 31.08.2016 13:15, Adriano dos Santos Fernandes wrote: >> You're so funny starting to be against it >I'm against? No, I use C++11 quite widely out of official Firebird tree. >But in previous discussion everyone else said "no, we won't use

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dimitry Sibiryakov
31.08.2016 13:15, Adriano dos Santos Fernandes wrote: > You're so funny starting to be against it I'm against? No, I use C++11 quite widely out of official Firebird tree. But in previous discussion everyone else said "no, we won't use C++11 in Firebird", so when you suggested it again, I

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Adriano dos Santos Fernandes
On 31/08/2016 04:42, Dimitry Sibiryakov wrote: > 31.08.2016 4:14, Adriano dos Santos Fernandes wrote: >> The obsolete language standard we're using is so boring and so outdated. >> We need to move on. >As I was said, it would drop out some platforms such as HPUX and Solaris > where >

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Adriano dos Santos Fernandes
On 31/08/2016 04:42, Dimitry Sibiryakov wrote: > 31.08.2016 4:14, Adriano dos Santos Fernandes wrote: >> The obsolete language standard we're using is so boring and so outdated. >> We need to move on. >As I was said, it would drop out some platforms such as HPUX and Solaris > where >

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dimitry Sibiryakov
31.08.2016 12:47, Adriano dos Santos Fernandes wrote: > We might continue avoiding the std class library for now, but anyway, we > should need to use basic things supporting the language, like std::function. You either avoid std or not, choose one. Basic language things are explicitly

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Adriano dos Santos Fernandes
On 31/08/2016 05:49, Michal Kubecek wrote: > This might vary a lot from feature to feature. There may be also > difference between the language itself and standard library. For > example, gcc 4.8 (which is the standard compiler in SLES 12, including > upcoming SP2) supports C++11 as a language

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Michal Kubecek
On Wed, Aug 31, 2016 at 10:06:50AM +0200, Thomas Steinmaurer wrote: > > 31.08.2016 05:14, Adriano dos Santos Fernandes wrote: > >> > >> In the code I'm writing, I had good opportunities to use some features > >> that the compiler flags we're using disallowed, like lambda and default > >> arguments

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dmitry Yemanov
31.08.2016 11:06, Thomas Steinmaurer wrote: > > Do we know that the new language features are stable enough? So far we speak only about C++11 which is five years old already. And we won't know without trying anyway. I remember us discovering bugs in compilers during the C++ migration in early

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Thomas Steinmaurer
> 31.08.2016 05:14, Adriano dos Santos Fernandes wrote: >> >> In the code I'm writing, I had good opportunities to use some features >> that the compiler flags we're using disallowed, like lambda and default >> arguments for template parameter. >> >> Also we have the ubiquitous ugly iterator types

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dmitry Yemanov
31.08.2016 05:14, Adriano dos Santos Fernandes wrote: > > In the code I'm writing, I had good opportunities to use some features > that the compiler flags we're using disallowed, like lambda and default > arguments for template parameter. > > Also we have the ubiquitous ugly iterator types in

Re: [Firebird-devel] C++11 features

2016-08-31 Thread Dimitry Sibiryakov
31.08.2016 4:14, Adriano dos Santos Fernandes wrote: > The obsolete language standard we're using is so boring and so outdated. > We need to move on. As I was said, it would drop out some platforms such as HPUX and Solaris where compilers don't support C++11 standard. -- WBR, SD.

[Firebird-devel] C++11 features

2016-08-30 Thread Adriano dos Santos Fernandes
Hi! In the code I'm writing, I had good opportunities to use some features that the compiler flags we're using disallowed, like lambda and default arguments for template parameter. Also we have the ubiquitous ugly iterator types in for's with would benefit from "auto". It seems we already had