Giter Club home page Giter Club logo

Comments (3)

waitman avatar waitman commented on July 22, 2024 1

one more issue -
daemon/key_state.cc

barfs tons of errors during compile - important ones are

hyperdex::key_state::client_response
method is not marked const
std::push_heap invalid operands to binary expression

change line 100 , add const to end.

// intentionally backwards so the max heap becomes min heap.
    bool operator < (const client_response& rhs) const

haven't yet tested the binaries :) but something to consider when building with clang

from hyperdex.

waitman avatar waitman commented on July 22, 2024

update,

This problem is happening because "partitions" is already defined in
/usr/include/c++/v1/algorithm:



template <class ForwardIterator, class Predicate>
    ForwardIterator
    partition(ForwardIterator first, ForwardIterator last, Predicate pred);

The compiler is apparently getting confused, or maybe partition should be explicitly referenced anyway?

This fixes the problem:
admin/hyperspace_builder.cc

569: for (size_t i = 0; i < sp.subspaces.size(); ++i)
570: {
571:    hyperdex::partition(sp.subspaces[i].attrs.size(), in->partitions, &sp.subspaces[i].regions);
572: }

Should compile on gcc, etc, would have to test.

from hyperdex.

rescrv avatar rescrv commented on July 22, 2024

HyperDex compiles on clang 3.7 on FreeBSD 9.x. I didn't test 3.4, but I'm open to any patches to make it work on both.

from hyperdex.

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.