Skip to content

Operator Overloading Error in system/lib/libcxx/include/__algorithm/sort.h #22014

@SaraBaradaran

Description

@SaraBaradaran

I faced the following error when compiling stxxl (https://github.com/stxxl/stxxl) using Emscripten. It seems there is a bug in system/lib/libcxx/include/__algorithm/sort.h header.

version: latest (3.1.60) and 3.1.54

/home/sara/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__algorithm/sort.h:614:14: error: no viable overloaded '='
  614 |     *__begin = _Ops::__iter_move(__pivot_pos);
      |     ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can reproduce the error using the following commands:

$ git clone https://github.com/stxxl/stxxl
$ cd stxxl
$ mkdir build
$ cd build
$ emcmake cmake -DBUILD_TESTS=ON ..
$ emmake cmake --build .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions