octobanana / belle Goto Github PK
View Code? Open in Web Editor NEWAn HTTP / Websocket library in C++17 using Boost.Beast and Boost.ASIO.
Home Page: https://octobanana.com/software/belle
License: MIT License
An HTTP / Websocket library in C++17 using Boost.Beast and Boost.ASIO.
Home Page: https://octobanana.com/software/belle
License: MIT License
This is the first example in the README (called http.cpp
here).
$ g++ -std=c++17 http.cpp -Wfatal-errors
In file included from http.cpp:1:
belle/include/belle.hh:618:24: error: ‘OB::Belle::websocket::role_type’ has not been declared
618 | friend void teardown(websocket::role_type,
| ^~~~~~~~~
$ g++ -std=c++17 http.cpp -Wfatal-errors In file included from http.cpp:1:
belle/include/belle.hh:618:24: error: ‘OB::Belle::websocket::role_type’ has not been declared
618 | friend void teardown(websocket::role_type,
| ^~~~~~~~~
Using Boost 1.71
Does this application implements model view controller approach .. one extra question is this project alive..
Is this still being worked on?
Good morning,
I've tried to compile your library (the first, very very simple example for a http server that just echos back the request body) using microsoft visual studio (v15.8.9) and there a a lot of C2888 errors:
1> c:\dev\packages.conan\data\belle\0.9.0\auto\stable\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\belle\include\belle.hh(1201): error C2888: 'void <lambda_59fc3b57f109080765fee6635e6fcd48>::operator ()(_T1,_T2 &&) const': symbol cannot be defined within namespace 'Belle'
1> c:\dev\packages.conan\data\belle\0.9.0\auto\stable\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\belle\include\belle.hh(1216): error C2888: 'void <lambda_59fc3b57f109080765fee6635e6fcd48>::<lambda_invoker_cdecl>(_T1,_T2 &&)': symbol cannot be defined within namespace 'Belle'
=> Compiler Error C2888
'identifier' : symbol cannot be defined within namespace 'namespace'
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2888?view=vs-2017
It's hard to comply to the coding style, a clang-format file would help at some points:
The "nearest" style actually seems something like
Language: Cpp
BasedOnStyle: Mozilla
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AlignTrailingComments: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BeforeCatch: true
BeforeElse: true
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
ColumnLimit: 0
Cpp11BracedListStyle: true
MaxEmptyLinesToKeep: 1
SortIncludes: false
(Used whatstyle to analyze).
What do you think about adding some reasonable style format?
Websocket_Base: no known conversion for argument 1 from boost::asio::execution_context to boost::asio::io_context
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.