GithubHelp home page GithubHelp logo

Comments (5)

dwrensha avatar dwrensha commented on June 2, 2024

I think this is the same as #11.

What about -std=gnu++11?

from ekam.

abliss avatar abliss commented on June 2, 2024

For reference, here are some of the errors with c++11.

/ekam-provider/canonical/kj/compat/http-test.c++:863:1: error: could not convert '{"HTTP/1.1 200 OK\015\012Content-Length: 7\015\012\015\012", 200, "OK", <brace-enclosed initializer list>(), 7, {
[FAILED ] compile: kj/compat/http.c++
/ekam-provider/canonical/kj/compat/http.c++: In instantiation of 'static constexpr bool kj::{anonymous}::FastCaseCmp<first, rest ...>::apply(const char*) [with char first = '1'; char ...rest = {}
/ekam-provider/canonical/kj/compat/http.c++:1185:70:   recursively required from 'static constexpr bool kj::{anonymous}::FastCaseCmp<first, rest ...>::apply(const char*) [with char first = 'O'; c
/ekam-provider/canonical/kj/compat/http.c++:1185:70:   required from 'static constexpr bool kj::{anonymous}::FastCaseCmp<first, rest ...>::apply(const char*) [with char first = 'f'; char ...rest
/ekam-provider/canonical/kj/compat/http.c++:1203:38:   required from 'constexpr bool kj::{anonymous}::fastCaseCmp(const char*) [with char ...chars = {'f', 'O', 'o', 'B', '1'}]'
/ekam-provider/canonical/kj/compat/http.c++:1207:55:   required from here
/ekam-provider/canonical/kj/compat/http.c++:1191:3: error: body of constexpr function 'static constexpr bool kj::{anonymous}::FastCaseCmp<first, rest ...>::apply(const char*) [with char first = '
   }

from ekam.

abliss avatar abliss commented on June 2, 2024

-std=gnu++11 seems to have the same problem.

from ekam.

kentonv avatar kentonv commented on June 2, 2024

Oops, that appears to be an issue in Cap'n Proto code. Specifically, some code I added fairly recently which I guess I never tested in C++11 mode.

I'm tempted to declare that Cap'n Proto now requires C++14, since there's some pretty big improvements that I'd like to rely on going forward...

from ekam.

mrdomino avatar mrdomino commented on June 2, 2024

FWIW bazel still seems to compile as C++11 by default. Maybe not that big a deal though -- it's easy enough to set custom compile flags in a bazel.rc or something.

from ekam.

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.