Line data Source code
1 : #pragma once 2 : 3 : #include "absl/log/log.h" 4 : #include "git.h" 5 : 6 : namespace header_only { 7 : namespace common { 8 1 : inline int some_fun() { 9 1 : LOG(INFO) << git::ProjectVersion(); 10 1 : return 0; 11 : } 12 : 13 : constexpr int some_constexpr_fun() { 14 : return 0; 15 : } 16 : 17 1 : const std::string_view const_string() { 18 1 : LOG(INFO) << "Calling " << __FUNCTION__; 19 1 : return "This is a header_only only const string"; 20 : } 21 : } // namespace common 22 : 23 : } // namespace header_only