Giter Site home page Giter Site logo

restinio-crud-example's People

Contributors

eao197 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

restinio-crud-example's Issues

Failed to compile due to " no type named 'type' in 'struct std::enable_if<false, nonstd::expected_lite::detail::enabler>'" from expected-lite

Hi,
I'm having a problem to compile this sample, and I believe this has something to do with this issue martinmoene/expected-lite#32? The expected-lite and optional-lite have since been updated with samples from both repos can be normally compiled.

How should I go about to get this restinio sample compiled?

My system: Fedora 31
Steps : as in the README.md in the repo.
Error messages:
restinio-crud-example/crud-example/request_processor.cpp:150:62: required from here
/vcpkg/installed/x64-linux/include/restinio/third_party/expected-lite/expected.hpp:1624:16: error: no type named 'type' in 'struct std::enable_if<false, nonstd::expected_lite::detail::enabler>'
1624 | expected & operator=( nonstd::unexpected_type const & error )
| ^~~~~~~~
/vcpkg/installed/x64-linux/include/restinio/third_party/expected-lite/expected.hpp:1636:16: error: no type named 'type' in 'struct std::enable_if<false, nonstd::expected_lite::detail::enabler>'
1636 | expected & operator=( nonstd::unexpected_type && error )
restinio/sample/restinio-crud-example/crud-example/request_processor.cpp:3:
/vcpkg/installed/x64-linux/include/restinio/third_party/expected-lite/expected.hpp: In instantiation of 'class nonstd::expected_lite::unexpected_type<crud_example::request_processing_failure_t>':
restinio-crud-example/crud-example/request_processor.cpp:156:5: required from here
/vcpkg/installed/x64-linux/include/restinio/third_party/expected-lite/expected.hpp:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
980 | swap( unexpected_type & other ) noexcept (
| ^~~~
make[2]: *** [crud-example/CMakeFiles/crud_example.dir/build.make:89: crud-example/CMakeFiles/crud_example.dir/request_processor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:94: crud-example/CMakeFiles/crud_example.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.