fix regression

This commit is contained in:
tqchen
2014-11-16 11:38:21 -08:00
parent 02c2278f96
commit 129fee64f3
3 changed files with 22 additions and 9 deletions

View File

@@ -10,6 +10,7 @@
#include <cstring>
#include <algorithm>
#include <iostream>
#include "./io.h"
#include "./utils.h"
namespace xgboost {
@@ -481,7 +482,11 @@ class QuantileSketchTemplate {
/*! \brief same as summary, but use STL to backup the space */
struct SummaryContainer : public Summary {
std::vector<Entry> space;
SummaryContainer(void) : Summary(NULL, 0) {
explicit SummaryContainer(void) : Summary(NULL, 0) {
}
explicit SummaryContainer(const SummaryContainer &src) : Summary(NULL, src.size) {
this->space = src.space;
this->data = BeginPtr(this->space);
}
/*! \brief reserve space for summary */
inline void Reserve(size_t size) {