Skip to content

Commit

Permalink
Include used headerrs in AtomicSharedPtrCounted.h
Browse files Browse the repository at this point in the history
Summary: Also re-order the test slightly to catch this.

Reviewed By: yfeldblum

Differential Revision: D25704580

fbshipit-source-id: 1421daed11a0d41e1b99d573b38fc8fc70381486
  • Loading branch information
Orvid authored and facebook-github-bot committed Dec 26, 2020
1 parent c4b6d52 commit a200097
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions folly/concurrency/test/AtomicSharedPtrCounted.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

#pragma once

#include <atomic>
#include <cstdint>
#include <stdexcept>
#include <type_traits>

#include <glog/logging.h>

struct counted_shared_tag {};
template <template <typename> class Atom = std::atomic>
struct intrusive_shared_count {
Expand Down
3 changes: 2 additions & 1 deletion folly/concurrency/test/AtomicSharedPtrTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
// other vendors
#ifdef FOLLY_USE_LIBSTDCPP

#include <folly/concurrency/test/AtomicSharedPtrCounted.h>

#include <atomic>
#include <memory>
#include <thread>

#include <folly/concurrency/AtomicSharedPtr.h>
#include <folly/concurrency/test/AtomicSharedPtrCounted.h>
#include <folly/portability/GTest.h>

#include <folly/test/DeterministicSchedule.h>
Expand Down

0 comments on commit a200097

Please sign in to comment.