librelist archives

« back to archive

Vsqlite-- & C++11...

Vsqlite-- & C++11...

From:
Basile Starynkevitch
Date:
2015-02-09 @ 10:27
Hello All,

Is vsqlite++ (or should it be called vsqlite--) 
compatible with a C++11 compiler?

(Specifically, I am compiling on Linux/Debian/Sid with GCC 4.9 or Clang++ 3.6)

I am a bit concerned by use of boost::shared_ptr ....


Regards

--
Basile Starynkevitch     http://starynkevitch.net/Basile/

Re: [vsqlite] Vsqlite-- & C++11...

From:
Vinzenz Feenstra
Date:
2015-02-09 @ 13:15
Hi there :-)

It's supposed to be called vsqlite++ (a historical thing)

The usage of boost::shared_ptr shouldn't be a problem for C++11 compatible
compilers.
The main reason for it is that, until quite recently the major known
consumer of the library was the MYSQL Workbench project. And they need to
support operating system versions which do not have that new C++ compilers.
To keep the backward compatibility as long as possible the changes to the
vsqlite++ library so far have been quite conservative.

It might be however time to move ahead and develop a new more modern style
C++ API, at least on the side for now which utilizes all the new language
and library features to provide a nice interface.

I am very much open for proposals, however I would rather try for now to
have it as a second API than just plainly replacing the older one.

Regards,

Note on the side: Some features, such as 'enum class' are only added
because the older GCC compilers are already supporting them.


On Mon, Feb 9, 2015 at 11:27 AM, Basile Starynkevitch <
basile@starynkevitch.net> wrote:

> Hello All,
>
> Is vsqlite++ (or should it be called vsqlite--)
> compatible with a C++11 compiler?
>
> (Specifically, I am compiling on Linux/Debian/Sid with GCC 4.9 or Clang++
> 3.6)
>
> I am a bit concerned by use of boost::shared_ptr ....
>
>
> Regards
>
> --
> Basile Starynkevitch     http://starynkevitch.net/Basile/
>
>