Skip to content

Commit c1b52f1

Browse files
committed
- Updated 3rd-party subrepos.
- Fixed missing RawNumber for RapidJSON parser (fixes #100). - Added missing spaces in conversion exception messages (fixes #101).
1 parent ef3541c commit c1b52f1

File tree

13 files changed

+38
-8
lines changed

13 files changed

+38
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v0.6.3
2+
======
3+
Update for latest 3rd-party dependencies.
4+
5+
- Updated 3rd-party subrepos.
6+
- Fixed missing RawNumber for RapidJSON parser (fixes #100).
7+
- Added missing spaces in conversion exception messages (fixes #101).
8+
19
v0.6.2
210
======
311
Variant conversion enhancements.
@@ -10,6 +18,8 @@ Variant conversion enhancements.
1018
- Enforced Client::LocalSubs non-empty invariant during unsubscribe.
1119
- Added Variant::at accessors (closes #95).
1220
- Updated config.json test/example files for Crossbar 0.13.0.
21+
- Blob is now stored via a pointer within the Variant::Field union, to reduce
22+
the size of a Variant object.
1323

1424
v0.6.1
1525
======

cppwamp/include/cppwamp/internal/conversion.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ FromVariantConverter& FromVariantConverter::operator[](T& value)
143143
{
144144
std::ostringstream oss;
145145
oss << "wamp::error::Conversion: Attemping to access field type "
146-
<< typeNameOf(var_) << "as array";
146+
<< typeNameOf(var_) << " as array";
147147
throw error::Conversion(oss.str());
148148
}
149149
catch (const std::out_of_range&)
@@ -185,7 +185,7 @@ FromVariantConverter& FromVariantConverter::operator()(const String& key,
185185
{
186186
std::ostringstream oss;
187187
oss << "wamp::error::Conversion: Attemping to access field type "
188-
<< typeNameOf(var_) << "as object using key \"" << key << '"';
188+
<< typeNameOf(var_) << " as object using key \"" << key << '"';
189189
throw error::Conversion(oss.str());
190190
}
191191
catch (const std::out_of_range&)
@@ -229,7 +229,7 @@ FromVariantConverter& FromVariantConverter::operator()(const String& key,
229229
{
230230
std::ostringstream oss;
231231
oss << "wamp::error::Conversion: Attemping to access field type "
232-
<< typeNameOf(var_) << "as object using key \"" << key << '"';
232+
<< typeNameOf(var_) << " as object using key \"" << key << '"';
233233
throw error::Conversion(oss.str());
234234
}
235235

cppwamp/include/cppwamp/internal/json.ipp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public:
4040
return Base::String(str, length, true);
4141
}
4242

43+
// Only used if kParseNumbersAsStringsFlag is set
44+
bool RawNumber(const char* /*str*/, SizeType /*length*/, bool /*copy*/)
45+
{
46+
// kParseNumbersAsStringsFlag should never be set in CppWAMP.
47+
assert(false && "RapidJSON kParseNumbersAsStringsFlag not supported");
48+
return false;
49+
}
50+
4351
private:
4452
using Base = VariantBuilder;
4553
};

cppwamp/include/cppwamp/version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#define CPPWAMP_MINOR_VERSION 6
2121

2222
/// Patch version for backwards-compatible bug fixes.
23-
#define CPPWAMP_PATCH_VERSION 2
23+
#define CPPWAMP_PATCH_VERSION 3
2424

2525
/// Integer version number, computed as `(major*10000) + (minor*100) + patch`
26-
#define CPPWAMP_VERSION 602
26+
#define CPPWAMP_VERSION 603
2727

2828
namespace wamp
2929
{

ext/Catch

Submodule Catch updated from 35f4266 to 35f5105

ext/msgpack-c

Submodule msgpack-c updated 751 files

ext/rapidjson

test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ add_definitions(
4747
-DCPPWAMP_TESTING_WAMP=1
4848
)
4949

50+
# Silence GCC warnings from Catch comparison checks
51+
if(CMAKE_COMPILER_IS_GNUCXX)
52+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-parentheses")
53+
endif()
54+
5055
# Add include path for Catch unit test framework
5156
include_directories(${PATH_INCLUDE_CATCH})
5257

test/codectestjson.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <cppwamp/json.hpp>
1616

1717
using namespace wamp;
18+
using namespace Catch::Matchers;
1819

1920
namespace
2021
{

test/test.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ QMAKE_CXXFLAGS += -std=c++11
5757
#Enable support for threads
5858
QMAKE_CXXFLAGS += -pthread
5959

60+
#Silence warnings from Catch comparison checks
61+
QMAKE_CXXFLAGS += -Wno-parentheses
62+
6063
#Stop compiling after N errors
6164
QMAKE_CXXFLAGS += -fmax-errors=3
6265

test/varianttestinfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cppwamp/variant.hpp>
1515

1616
using namespace wamp;
17+
using namespace Catch::Matchers;
1718

1819
//------------------------------------------------------------------------------
1920
SCENARIO( "Variant type information", "[Variant]" )

test/wamptest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525

2626
using namespace wamp;
27+
using namespace Catch::Matchers;
2728

2829
namespace
2930
{

test/wamptestadvanced.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cppwamp/internal/config.hpp>
1515

1616
using namespace wamp;
17+
using namespace Catch::Matchers;
1718

1819
namespace
1920
{

0 commit comments

Comments
 (0)