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

Compilation failure with Visual Studio 2017 15.8 #18

Open
OpenNingia opened this issue Oct 31, 2018 · 1 comment
Open

Compilation failure with Visual Studio 2017 15.8 #18

OpenNingia opened this issue Oct 31, 2018 · 1 comment

Comments

@OpenNingia
Copy link

OpenNingia commented Oct 31, 2018

CL version:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26732.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
"C:\nph\Code\sqlpp11\sqlpp11-connector-odbc\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\nph\Code\sqlpp11\sqlpp11-connector-odbc\build\tests\ODBCTest.vcxproj" (default target) (3) ->
(ClCompile target) ->
  c:\nph\code\sqlpp11\sqlpp11-connector-odbc\include\sqlpp11\odbc\insert_or.h(50): error C2070: 'const char []': illega
l sizeof operand [C:\nph\Code\sqlpp11\sqlpp11-connector-odbc\build\tests\ODBCTest.vcxproj]
  c:\nph\code\sqlpp11\sqlpp11_install\include\sqlpp11\detail\index_sequence.h(49): fatal error C1202: recursive type or
 function dependency context too complex [C:\nph\Code\sqlpp11\sqlpp11-connector-odbc\build\tests\ODBCTest.vcxproj]

    48 Warning(s)
    2 Error(s)

Replacing:

static constexpr const char _literal[] = "insert_or";

with:

static constexpr auto _literal = "insert_or";

fixed the issue.

@hgbutte
Copy link

hgbutte commented Feb 11, 2021

Will this be fixed in repo code?

Or is this project not maintained anymore?

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

2 participants