Hi folks,

During the FOSDEM event we discussed the possibility of using the add-on server as a bootstrapping project to introduce C++11 into Wesnoth. This project is ideal because really few developers will need to build it. The major problem is that C++11 isn't yet well-supported by all compilers (mostly on Windows) and that's why we didn't use it until now.

By using idiomatic C++11 in this project, we could show the power and expressiveness of this new language (yes, new!). This could facilitate the adoption in the entire Wesnoth project later.

Secondly, we'd like to use the sqlpp11 library[1] which is a C++11 database interface, it is a header only library but the connectors[3,4] need to be compiled. The major advantage is the type safety of the SQL statements. Moreover it's sqlpp11 only build a tree of the SQL expressions which is next interpreted by any connector to an underlying database. It's the most advanced and interesting C++ database interface around, there are discussions on the Boost mailing-list for possible Boost review and the author (Roland Bock) is really responsive. He also wants to write an official proposal paper to propose this library into the standard (the current database working group seems to be inactive). There are some discussions about the connectors (like merging sqlpp11 and SOCI[2]) but the front-end is quite frozen so it's ok for us to use it since we probably won't use vendor specific features. Last thing but not least, this library is already used in production.

* What do you think of bringing C++11 in Wesnoth this way?
* Should we use the sqlpp11 library?

Cheers,
Pierre Talbot

[1] https://github.com/rbock/sqlpp11
[2] http://soci.sourceforge.net/
[3] https://github.com/rbock/sqlpp11-connector-sqlite3
[4] https://github.com/rbock/sqlpp11-connector-mysql

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to