maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #05201
Re: Using C++ features in MariaDB
Hi, Christian!
On Feb 18, Christian Convey wrote:
>
> The reason I'm asking is that, while I'm generally cautious about new
> C++ features, there are some features in C++11 which I'm pretty happy
> about. For example, class enumerations and nullptr (
> http://www.cprogramming.com/c++11/c++11-nullptr-strongly-typed-enum-class.html
> ).
>
> I'm trying to anticipate whether or not a patch would be rejected if
> it contained those constructs.
That would need testing. At least they introduce no run-time penalty,
it's purely a syntactic sugar. But I'm afraid we won't have time to test
that now. At the moment we don't compile with -std=c++0x at all, so
nullptr keyword is not recognized.
You know what, feel free to use these features if you'd like. It's easy
to search/replace and remove them it needed later.
But anyway, NULL is quite ok in gcc - the compiler will issue a warning
if NULL is used as an integer (in that example with overloaded
function).
Regards,
Sergei
Follow ups
References