mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Simplify Beast:
* Remove asio HTTP classes * Remove beast::File, beast::String, beast::Stream, beast::Array, beast::MemoryBlock, beast::CriticalSection and other unused classes. * Remove unused platform-specific code. * Reduce Beast custom assert and debugging helper macros.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <beast/module/core/text/LexicalCast.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
namespace beast {
|
||||
|
||||
@@ -291,7 +292,7 @@ int compare (SemanticVersion const& lhs, SemanticVersion const& rhs)
|
||||
|
||||
if (isNumeric (left))
|
||||
{
|
||||
bassert (isNumeric (right));
|
||||
assert(isNumeric (right));
|
||||
|
||||
int const iLeft (lexicalCastThrow <int> (left));
|
||||
int const iRight (lexicalCastThrow <int> (right));
|
||||
@@ -303,7 +304,7 @@ int compare (SemanticVersion const& lhs, SemanticVersion const& rhs)
|
||||
}
|
||||
else
|
||||
{
|
||||
bassert (! isNumeric (right));
|
||||
assert (! isNumeric (right));
|
||||
|
||||
int result = left.compare (right);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user