Fix missing file names for new Log partition code

This commit is contained in:
Vinnie Falco
2013-05-25 11:19:18 -07:00
parent 4cb44a8915
commit 794b84c473
61 changed files with 224 additions and 119 deletions

View File

@@ -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