You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
replace boost::shared_array<T> to std::shared_ptr<T[]>
This commit is contained in:
@ -22,8 +22,6 @@
|
||||
using namespace std;
|
||||
|
||||
|
||||
using namespace boost;
|
||||
|
||||
#include "errorids.h"
|
||||
#include "exceptclasses.h"
|
||||
using namespace logging;
|
||||
@ -266,10 +264,10 @@ void JsonArrayInfo::mapColumns(const RowGroup& projRG)
|
||||
}
|
||||
}
|
||||
|
||||
shared_array<int> JsonArrayInfo::makeMapping(const RowGroup& in, const RowGroup& out)
|
||||
std::shared_ptr<int[]> JsonArrayInfo::makeMapping(const RowGroup& in, const RowGroup& out)
|
||||
{
|
||||
// For some reason using the rowgroup mapping fcns don't work completely right in this class
|
||||
shared_array<int> mapping(new int[out.getColumnCount()]);
|
||||
std::shared_ptr<int[]> mapping(new int[out.getColumnCount()]);
|
||||
|
||||
for (uint64_t i = 0; i < out.getColumnCount(); i++)
|
||||
{
|
||||
@ -337,7 +335,7 @@ uint8_t* JsonArrayAggregatAgUM::getResult()
|
||||
return fConcator->getResult(fGroupConcat->fSeparator);
|
||||
}
|
||||
|
||||
void JsonArrayAggregatAgUM::applyMapping(const boost::shared_array<int>& mapping, const Row& row)
|
||||
void JsonArrayAggregatAgUM::applyMapping(const std::shared_ptr<int[]>& mapping, const Row& row)
|
||||
{
|
||||
// For some reason the rowgroup mapping fcns don't work right in this class.
|
||||
for (uint64_t i = 0; i < fRow.getColumnCount(); i++)
|
||||
|
Reference in New Issue
Block a user