Split get_default() into two for deferred default construction and added forwarding...
[folly.git] / folly / detail / BitIteratorDetail.h
index 3cb240004239bb437a93af9521ea18625c351d92..7f4f57e366d0f64531fdbb03a3eb8e52ba33f9bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#ifndef FOLLY_DETAIL_BITITERATORDETAIL_H_
-#define FOLLY_DETAIL_BITITERATORDETAIL_H_
+#pragma once
 
 #include <iterator>
 #include <type_traits>
+
 #include <boost/iterator/iterator_adaptor.hpp>
 
 namespace folly {
@@ -36,7 +36,7 @@ class BitReference {
  public:
   BitReference(Ref r, size_t bit) : ref_(r), bit_(bit) { }
 
-  operator bool() const {
+  /* implicit */ operator bool() const {
     return ref_ & (one_ << bit_);
   }
 
@@ -85,9 +85,5 @@ struct BitIteratorBase {
     ssize_t> type;
 };
 
-
-}  // namespace bititerator_detail
-}  // namespace folly
-
-#endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
-
+} // namespace bititerator_detail
+} // namespace folly