Skip to content

MSVC debug mode assertion in void PairwiseTable<COSTTYPE, SIMDWIDTH>:: set_costs #18

@ubc-nvining

Description

@ubc-nvining

Hi folks:

I'm trying to get this working in debug mode on MSVC 2017. Inside of void
PairwiseTable<COSTTYPE, SIMDWIDTH>::set_costs(), an assert is being triggered in debug mode claiming an out of bounds operation from these lines here:

/* expand table into aligned storage */
for(_iv_st<COSTTYPE, SIMDWIDTH> li_a = 0; li_a < len_a; ++li_a)
    std::copy(&packed_table[li_a * len_b], 
        &packed_table[(li_a + 1) * len_b],
        &m_packed_table[li_a * padded_b]);

in Release mode, or even RelWithDebugInfo, this works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions