mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Fix missing file names for new Log partition code
This commit is contained in:
@@ -56,20 +56,15 @@ public:
|
||||
|
||||
private:
|
||||
/** Retrieve file name from a log partition.
|
||||
|
||||
Key must have this shape:
|
||||
|
||||
struct Key
|
||||
{
|
||||
static char const* getFileName ();
|
||||
};
|
||||
*/
|
||||
template <class Key>
|
||||
inline static LogPartition getFileName ()
|
||||
inline static char const* getFileName ();
|
||||
/*
|
||||
{
|
||||
// VFALCO: TODO, to implement this correctly get __FILE__ from Key
|
||||
return __FILE__;
|
||||
static_vfassert (false);
|
||||
}
|
||||
*/
|
||||
|
||||
public:
|
||||
template <class Key>
|
||||
inline static LogPartition const& get ()
|
||||
@@ -79,6 +74,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#define SETUP_LOG(k) template <> char const* LogPartition::getFileName <k> () { return __FILE__; }
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
class Log
|
||||
|
||||
Reference in New Issue
Block a user