Google Cloud Storage C++ Client  1.32.1
A C++ Client Library for Google Cloud Storage
version.cc
Go to the documentation of this file.
1 // Copyright 2018 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "google/cloud/storage/version.h"
16 #include "google/cloud/internal/api_client_header.h"
17 #include <limits>
18 
19 namespace google {
20 namespace cloud {
21 namespace storage {
22 inline namespace STORAGE_CLIENT_NS {
24 
25 std::string x_goog_api_client() {
26  return google::cloud::internal::ApiClientHeader();
27 }
28 
29 // These were sprinkled through the code, consolidated here because I could
30 // not find a better place.
31 auto constexpr kExpectedCharDigits = 8;
32 static_assert(
33  std::numeric_limits<unsigned char>::digits == kExpectedCharDigits,
34  "The Google Cloud Storage C++ library is only supported on platforms\n"
35  "with 8-bit chars. Please file a bug on\n"
36  " https://github.com/googleapis/google-cloud-cpp/issues\n"
37  "describing your platform details to request support for it.");
38 
39 } // namespace STORAGE_CLIENT_NS
40 } // namespace storage
41 } // namespace cloud
42 } // namespace google