Giter Club home page Giter Club logo

Comments (5)

rbock avatar rbock commented on June 23, 2024

Hi Praveen,

As discussed in issue 34 (#34), not even the CTP6 of MSVC-2015 has sufficient C++11 support. Back in August 2014, the current build of MSVC still had troubles with static_assert (this did not compile then: https://gist.github.com/rbock/b573ee3d024902998e3e).

I see no (reasonable) way to replace these things with boost equivalents. And quite frankly, even if I did, I would not want to do it. I'd rather spend my time improving the library and hoping for the MS compiler to finally catch up.

Of course, if you believe to be able to rewrite those parts of the library that stop it from compiling with MSVC 2013, please feel free to do so. I'll gladly link to your project.

Best,

Roland

from sqlpp11.

banka50 avatar banka50 commented on June 23, 2024

Seems MS fixed it (https://gist.github.com/rbock/b573ee3d024902998e3e)
Try the latest online version of the compiler (updated on Jun 1 2015)
http://webcompiler.cloudapp.net/

from sqlpp11.

rbock avatar rbock commented on June 23, 2024

The question was about MSVC-2013 (not 2015). There is some hope left for MSVC-2015, but as of now, that also seems problematic.

struct A
{
  static constexpr const char _literal[] =  "hello_world";
};

This does not compile even with the June-1 version. The compiler accepts the constexpr outside the struct though. See also: #43 (comment)

from sqlpp11.

banka50 avatar banka50 commented on June 23, 2024

struct A
{
static constexpr const char* _literal = "hello_world";
};

compiles fine :)

from sqlpp11.

rbock avatar rbock commented on June 23, 2024

That does not help me, I think. Take a look at
include/sqlp11/alias_provider.h or tests/Sample.h

If that can be done with const char*, then we're getting somewhere :-)

On 2015-06-02 14:53, Alexey wrote:

struct A
{
static constexpr const char* _literal = "hello_world";
};

compiles fine :)


Reply to this email directly or view it on GitHub
#36 (comment).

from sqlpp11.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.