Commit 97fc9b61 authored by Andrew Krieger's avatar Andrew Krieger Committed by Facebook GitHub Bot

Change DCHECK to assert to remove glog dep from Range

Summary:
This one DCHECK is the only thing keeping Range from
being free of external deps. Lets make it not be a thing, so
people are more inclined to pull in folly because Range is an
easy gateway class to the rest of folly.

Reviewed By: yfeldblum

Differential Revision: D21121743

fbshipit-source-id: 2a54e94074135c951526c50d4bb63ebf2076a72f
parent fb0e252e
......@@ -16,10 +16,9 @@
#pragma once
#include <cassert>
#include <cstdint>
#include <glog/logging.h>
namespace folly {
/***
......@@ -61,7 +60,7 @@ class SparseByteSet {
inline bool add(uint8_t i) {
bool r = !contains(i);
if (r) {
DCHECK_LT(size_, kCapacity);
assert(size_ < kCapacity);
dense_[size_] = i;
sparse_[i] = uint8_t(size_);
size_++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment