Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silo compilation error #18

Open
Fuger2021 opened this issue Aug 16, 2024 · 0 comments
Open

Silo compilation error #18

Fuger2021 opened this issue Aug 16, 2024 · 0 comments

Comments

@Fuger2021
Copy link

Compile Silo and get the following error

error: no match for ‘operator<<’ (operand types are ‘std::ostringstream’ {aka ‘std::__cxx11::basic_ostringstream<char>’} and ‘std::pair<const std::__cxx11::basic_string<char>, long unsigned int>’)
  319 |     ss << *begin++;
      |     ~~~^~~~~~~~~~~

./util.h causes the error

template <typename ForwardIterator>
std::string
format_list(ForwardIterator begin, ForwardIterator end)
{
  std::ostringstream ss;
  ss << "[";
  bool first = true;
  while (begin != end) {
    if (!first)
      ss << ", ";
    first = false;
    ss << *begin++;  // here
  }
  ss << "]";
  return ss.str();
}

It seems this is a bug in Silo itself. I'm working on Debian 12@Linux 5.15.19. I’d like to know how you compiled Silo correctly, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant