mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
-Added CI yaml file for workflows -Added `doctest` as dependency -Added test target executable to CMakeLists.txt -Renamed `bin` scripts to remove `gdpm*` prefix -Updated `SQLite 3` dependency in CMakeLists.txt -Implement basic unit testing in `tests/basic.cpp` -Fixed issue with handling `fmt` strings
16 lines
No EOL
203 B
C++
16 lines
No EOL
203 B
C++
|
|
#include <string>
|
|
|
|
|
|
namespace gdpm{
|
|
class error{
|
|
public:
|
|
error(int code, const std::string& message):
|
|
m_code(code), m_message(message)
|
|
{}
|
|
|
|
private:
|
|
int m_code;
|
|
std::string m_message;
|
|
}
|
|
} |