dev_yi #1

Merged
zhangyiss merged 14 commits from dev_yi into main 2025-01-03 15:56:32 +08:00
Showing only changes of commit bb6f97b6aa - Show all commits

View File

@ -313,11 +313,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row)
{
if (iter_row)
{
if (thead_ != RowHead && thead_ != BothHead)
{
throw std::runtime_error("[gctl::dsv_io] The table is initialized with no row names.");
}
for (size_t i = 0; i < row_num_; i++)
{
if (table_[i][0].str_ == name) return i;
@ -327,11 +322,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row)
}
else
{
if (thead_ != ColumnHead && thead_ != BothHead)
{
throw std::runtime_error("[gctl::dsv_io] The table is initialized with no column names.");
}
for (size_t i = 0; i < col_num_; i++)
{
if (table_[0][i].str_ == name) return i;