forked from EvergreenCrypto/docker-finance
container: root: rewrite throw handler, refactor using common types
- Refactor using common types that were once internal - Removes ancient macro approaches to C++20 solutions - Changes `Exception` message type to use std::string * std::string_view isn't worthwhile in this context
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
|
||||
#include "../../src/internal/type.hh"
|
||||
|
||||
@@ -50,8 +50,8 @@ namespace unit
|
||||
struct Exception : public ::testing::Test
|
||||
{
|
||||
protected:
|
||||
std::string_view what = "better to be caught than thrown";
|
||||
using t_type = type::Exception::kType;
|
||||
std::string what = "better to be caught than thrown";
|
||||
using t_type = ::dfi::common::type::Exception::kType;
|
||||
};
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
|
||||
Reference in New Issue
Block a user