Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to compile with VS2013? #36

Closed
suluvai opened this issue May 1, 2015 · 5 comments
Closed

Add support to compile with VS2013? #36

suluvai opened this issue May 1, 2015 · 5 comments

Comments

@suluvai
Copy link

suluvai commented May 1, 2015

Hi Roland,

I appreciate your work on Sqlpp11 library, quite impressed with the concept and would like to use it in my project but unfortunately your code does not compile with VS2013. Can you please add support to get this compile with VS2013?

I know you mentioned somewhere you have used C++11 features that were not supported by VS 2013 compiler but there are alternatives you can use bu substituting with equivalent boost library implementation.

Can you please add support to get this compile using MSVC 2013?

Thanks
Praveen

@suluvai suluvai changed the title Compile with VS2013. Add support to compile with VS2013? May 1, 2015
@rbock
Copy link
Owner

rbock commented May 1, 2015

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

@rbock rbock closed this as completed May 1, 2015
@banka50
Copy link

banka50 commented Jun 2, 2015

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/

@rbock
Copy link
Owner

rbock commented Jun 2, 2015

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)

@banka50
Copy link

banka50 commented Jun 2, 2015

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

compiles fine :)

@rbock
Copy link
Owner

rbock commented Jun 2, 2015

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants