logging.hpp (bd1299b74c25fa6123cab497d4b8370689a7a999) | logging.hpp (7a16ddc8e036eabcbe7e0c8087ceee7a4cb1d2d8) |
---|---|
1#pragma once 2 3#include "bmcweb_config.h" 4 5#include <bit> 6#include <format> 7#include <iostream> 8#include <source_location> --- 53 unchanged lines hidden (view full) --- 62struct FormatString 63{ 64 std::string_view str; 65 std::source_location loc; 66 67 // NOLINTNEXTLINE(google-explicit-constructor) 68 FormatString(const char* stringIn, const std::source_location& locIn = 69 std::source_location::current()) : | 1#pragma once 2 3#include "bmcweb_config.h" 4 5#include <bit> 6#include <format> 7#include <iostream> 8#include <source_location> --- 53 unchanged lines hidden (view full) --- 62struct FormatString 63{ 64 std::string_view str; 65 std::source_location loc; 66 67 // NOLINTNEXTLINE(google-explicit-constructor) 68 FormatString(const char* stringIn, const std::source_location& locIn = 69 std::source_location::current()) : |
70 str(stringIn), 71 loc(locIn) | 70 str(stringIn), loc(locIn) |
72 {} 73}; 74 75template <typename T> 76const void* logPtr(T p) 77{ 78 static_assert(std::is_pointer<T>::value, 79 "Can't use logPtr without pointer"); --- 130 unchanged lines hidden --- | 71 {} 72}; 73 74template <typename T> 75const void* logPtr(T p) 76{ 77 static_assert(std::is_pointer<T>::value, 78 "Can't use logPtr without pointer"); --- 130 unchanged lines hidden --- |