boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
96 stars 116 forks source link

static_vector size issue Win 10 x64 compilation #213

Closed illion20 closed 1 year ago

illion20 commented 2 years ago

I am trying to compile the project from this repo: https://github.com/critter-mj/akochan

I have created an issue describing the problem here: https://github.com/critter-mj/akochan/issues/18

The only idea I have is that the size of the static_vector is causing this issue. Is there a limitation on size for Win 10 64?

This works const int MAX_EDGE_NUM_PER_THREAD = 100000 * 60; This doesnt work: const int MAX_EDGE_NUM_PER_THREAD = 100000 * 61; For the code

std::array<boost::container::static_vector<Tehai_Action, MAX_EDGE_NUM_PER_THREAD>, CAL_NUM_THREAD> cand_graph_sub_tsumo_work;
std::array<boost::container::static_vector<Tehai_Action, MAX_EDGE_NUM_PER_THREAD>, CAL_NUM_THREAD> cand_graph_sub_fuuro_work;

Error: image

igaztanaga commented 1 year ago

There is no limitation for Win x64, it looks like the compiler is generating an incorrect executable, I can't see any bug related to static_vector.