From def1dc467367963aa469ca78630ab676fb5fc00e Mon Sep 17 00:00:00 2001 From: zdenop Date: Mon, 11 Nov 2019 20:01:06 +0100 Subject: [PATCH] fix training build --- src/ccutil/genericvector.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ccutil/genericvector.h b/src/ccutil/genericvector.h index d97630af..49c389b1 100644 --- a/src/ccutil/genericvector.h +++ b/src/ccutil/genericvector.h @@ -28,6 +28,7 @@ #include "helpers.h" #include "serialis.h" +#include "strngs.h" #include "tesscallback.h" // Use PointerVector below in preference to GenericVector, as that @@ -390,11 +391,16 @@ inline bool LoadDataFromFile(const char* filename, GenericVector* data) { return result; } +inline bool LoadDataFromFile(const STRING& filename, + GenericVector* data) { + return LoadDataFromFile(filename.string(), data); +} + // The default FileWriter writes the vector of char to the filename file, // returning false on error. inline bool SaveDataToFile(const GenericVector& data, - const char* filename) { - FILE* fp = fopen(filename, "wb"); + const STRING& filename) { + FILE* fp = fopen(filename.string(), "wb"); if (fp == nullptr) { return false; }