Consistent indentation for class visibility labels
[folly.git] / folly / detail / BitIteratorDetail.h
index 3cb240004239bb437a93af9521ea18625c351d92..ee64ffe4bcfb1468d8ba6fc21619f27850779a96 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_);
   }
 
@@ -88,6 +88,3 @@ struct BitIteratorBase {
 
 }  // namespace bititerator_detail
 }  // namespace folly
-
-#endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
-