Skip to content

share/include.cpp error and boost error #20

@konelane

Description

@konelane

When I make system.exe, there is nothing wrong with the program. But when I use command .\system mjai_log ./haifu_log_1000_0.json 0, here comes the error:

......
{"scores": [24600, 38100, 18600, 18700], "type": "end_game"}
calculating review
set_selector current_action_type error
Assertion failed: false, file ../share/include.cpp, line 6

The assert_false code is:

#include "include.hpp"

void assert_with_out(const bool true_condition, const std::string& comment) {
    if (!true_condition) {
        std::cout << comment << std::endl;
        assert(false);
    }
}

And, when I use command .\system test 100, error is:

0 {"aka_flag": true, "kyoku_first": 4, "type": "start_game"}
......
2 {"actor": 0, "pai": "P", "type": "tsumo"}
Assertion failed: this->m_holder.m_size > n, file D:/diao/boost_1_78_0/boost/container/vector.hpp, line 1655

Code is:

   BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference operator[](size_type n) BOOST_NOEXCEPT_OR_NOTHROW
   {
      BOOST_ASSERT(this->m_holder.m_size > n);
      return this->m_holder.start()[difference_type(n)];
   }

I have no idea of these problem... Maybe it is caused by my boost version?

I don't know if it's useful to paste the environment. My environment is as follows:

system: Windows10
gcc 9.2
boost 1_78_0

And I setup a pthread lib on my windows, because the make part requires the -lpthread. I checked the Makefile and have no idea of that.

I am a freshman in C++, and little bit tired of prepare the env for make (Orz). But I really want to try this amazing project.

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