GithubHelp home page GithubHelp logo

Comments (3)

tomsercu avatar tomsercu commented on April 24, 2024

I have the same issue installing wangle on a RHEL6 system, using gcc 4.9. I have folly @ cef5789.
This occurs both when compiling with the default -std=c++0x (giving the error just like above),
and with -std=c++14 in CMakeLists.txt it will indicate it is trying to use make_unique from gcc-4.9.2_rhel6/include/c++/4.9.2/bits/unique_ptr.h, however the error remains the same.

from wangle.

tomsercu avatar tomsercu commented on April 24, 2024

No answer from JunhoSuh or the developers.
The error comes from the fact that old versions of folly had a non-standard make_unique that takes 2 template arguments. This is now removed, presumable so that make_unique follows the std::make_unique in c++14.
You can work around it like this (in acceptor/ConnectionManager.h)

  template<typename... Args>
  static UniquePtr makeUnique(Args&&... args) {
    //return folly::make_unique<ConnectionManager, Destructor>(
    //  std::forward<Args>(args)...);
    return std::unique_ptr<ConnectionManager, Destructor>(
      new ConnectionManager(std::forward<Args>(args)...));
  }

from wangle.

fugalh avatar fugalh commented on April 24, 2024

This is due to repositories being out of sync (folly and wangle).

On Wed, Oct 21, 2015 at 3:48 PM Tom Sercu [email protected] wrote:

No answer from JunhoSuh or the developers.
The error comes from the fact that old versions of folly had a
non-standard make_unique that takes 2 template arguments. This is now
removed, presumable so that make_unique follows the std::make_unique in
c++14.
You can work around it like this (in acceptor/ConnectionManager.h)

template<typename... Args>
static UniquePtr makeUnique(Args&&... args) {
//return folly::make_unique<ConnectionManager, Destructor>(
// std::forward(args)...);
return std::unique_ptr<ConnectionManager, Destructor>(
new ConnectionManager(std::forward(args)...));
}


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

from wangle.

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.