Fixed DateLUTImpl constructors to avoid accidental copying

Fixed one case of copying DateLUTImpl
This commit is contained in:
Vasily Nemkov 2020-05-11 10:42:47 +03:00
parent 228dbf475e
commit 776ce03777
2 changed files with 7 additions and 2 deletions

View File

@ -37,7 +37,12 @@ using YearWeek = std::pair<UInt16, UInt8>;
class DateLUTImpl class DateLUTImpl
{ {
public: public:
DateLUTImpl(const std::string & time_zone); explicit DateLUTImpl(const std::string & time_zone);
DateLUTImpl(const DateLUTImpl &) = delete;
DateLUTImpl & operator=(const DateLUTImpl &) = delete;
DateLUTImpl(const DateLUTImpl &&) = delete;
DateLUTImpl & operator=(const DateLUTImpl &&) = delete;
public: public:
/// The order of fields matters for alignment and sizeof. /// The order of fields matters for alignment and sizeof.

View File

@ -45,7 +45,7 @@ private:
size_t rows_removed = 0; size_t rows_removed = 0;
Logger * log; Logger * log;
DateLUTImpl date_lut; const DateLUTImpl & date_lut;
/// TODO rewrite defaults logic to evaluteMissingDefaults /// TODO rewrite defaults logic to evaluteMissingDefaults
std::unordered_map<String, String> defaults_result_column; std::unordered_map<String, String> defaults_result_column;