// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CRDTP_STATUS_H_ #define CRDTP_STATUS_H_ #include <cassert> #include <cstddef> #include <limits> #include <string> #include "export.h" namespace crdtp { // ============================================================================= // Status and Error codes // ============================================================================= enum class Error { … }; // A status value with position that can be copied. The default status // is OK. Usually, error status values should come with a valid position. struct CRDTP_EXPORT Status { … }; template <typename T> class StatusOr { … }; } // namespace crdtp #endif // CRDTP_STATUS_H_