Fix test/ProducerConsumerQueueTest.cpp build break
authorBen Hamilton <beng@fb.com>
Sat, 28 May 2016 00:01:53 +0000 (17:01 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 28 May 2016 00:08:32 +0000 (17:08 -0700)
commite9ebf3f43b1cb2034386bfb5daf25db59c781322
tree0d469f1f844c490cfed01ef174718d7b66d8111a
parentf70249c03acbf2e0d4449d6e74b8ab6cae206b28
Fix test/ProducerConsumerQueueTest.cpp build break

Summary:
The Folly `make check` build is broken with Clang on OS X.

This diff fixes the following break in `test/ProducerConsumerQueueTest.cpp`:

  In file included from ProducerConsumerQueueTest.cpp:17:
  ../../folly/ProducerConsumerQueue.h:55:18: error: no member named 'bad_alloc' in namespace 'std'
        throw std::bad_alloc();

The problem is a missing `#include <memory>` in `folly/ProducerConsumerQueue.h`.

Reviewed By: djwatson

Differential Revision: D3361252

fbshipit-source-id: d740914f54ede5617abc16437ab2e20a7376f6e5
folly/ProducerConsumerQueue.h