Questions tagged [folly]

Folly ("Facebook Open Source Library") is a C++ library of relatively low-level components, with very few dependencies, developed by Facebook. It's published under the Apache 2.0 license and is under active development as of November 2015.

folly is a C++ library of relative low-level components, developed by Facebook. It's published under the Apache 2.0 license and is under active development as of November 2015.

Among its feature one can find bit manipulation code snippets, an atomic hash map, Andrei Alexandrescu's ScopeGuard mechanism, and many more.

The library professes to complement the C++ Standard Library and Boost, i.e. avoid duplicate functionality with them.

See the overview of the library, or go to its github root.

68 questions
0
votes
1 answer

why does folly::future BrokenPromise make the const char* constructor explicit?

I noticed the BrokenPromise definition in facebook folly::future library, I cannot understand the purpose of the explict BrokenPromise(const char* type) constructor here? is it necessary? class FOLLY_EXPORT BrokenPromise : public PromiseException…
0
votes
2 answers

How to link Folly in CLion on Mac OS

I installed folly by attempting both ways of installation. brew install folly ./build/bootstrap-osx-homebrew.sh I have verified that it's installed correctly at the location /usr/local/Cellar/folly/2017.10.23.00. Now I'm trying to use it in a…
RandomQuestion
  • 6,778
  • 17
  • 61
  • 97
0
votes
0 answers

c++ use of new keyword in folly queue's write() function

I am reviewing Facebook folly's lock free queue and am unfamililar with an approach they're using. In the write() function, they use syntax new (&records_[currentWrite]) T(std::forward(recordArgs)...); I would have expected something more…
awaugh
  • 75
  • 1
  • 6
0
votes
0 answers

fbthrift folly/folly/stats/test won't build on Ubuntu 14.04

We installed Ubuntu 14.04. We want to install fbthrift there. We did the git clone of fbthrift. We then did a git checkout of version v2017.06.05.00. We followed the guidance in README.md, and ran the script called ./build/deps_ubuntu_14.04.sh It…
Gordon Fossum
  • 37
  • 2
  • 6
0
votes
1 answer

Compilation issue while using Folly Futures

#include #include using namespace folly; using namespace std; void foo(int x) { // do something with x cout << "foo(" << x << ")" << endl; } // ... int main() { cout << "making Promise" << endl; …
0
votes
0 answers

Cant import folly/facebook c++ lib

I am currently trying to use the atomic_hashmaps from folly/facebook c++ library, but after the folly installation, if I simply require the lib like #include The g++ compiler throws the following exception: In file included…
Raphael Ottoni
  • 506
  • 3
  • 14
0
votes
1 answer

Regarding compilation issue while linking with facebook folly libraries

I have built the facebook folly libraries by using the following link given below https://github.com/facebook/folly #include #include #include #include #include #include "folly/FBVector.h" int…
0
votes
3 answers

Build facebook folly

Can't build folly. Have the next folder structure: /flint/double-conversion/src /flint/folly/folly/ Where /flint/folly contains readme and license. As in the readme I set up double-conversion with scons, export flags with export…
cassandrad
  • 3,412
  • 26
  • 50
1 2 3 4
5