Skip to content

Commit 3b4be20

Browse files
committed
Fix assert in test quaternion type
Update README
1 parent 553a579 commit 3b4be20

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ float out_value;
343343
reader.serialize<bounded_range>(range, out_value); // out_value should now be a value close to 1.2345678f
344344
```
345345

346+
These examples can also be seen in [`src/test/examples_test.cpp`](https://github.com/KredeGC/BitStream/tree/master/src/test/examples_test.cpp).
347+
346348
# Extensibility
347349
The library is made with extensibility in mind.
348350
The `bit_writer` and `bit_reader` use a template trait specialization of the given type to deduce how to serialize and deserialize the object.

include/bitstream/traits/array_traits.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
namespace bitstream
1414
{
15+
/**
16+
* @brief Wrapper type for subsets of arrays
17+
* @tparam T The type of the array
18+
*/
1519
template<typename T, typename = T>
1620
struct array_subset;
1721

src/shared/test_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace bitstream::test
1414
// The constructor order must be the same as the operator[]
1515
float operator[](size_t index) const
1616
{
17-
BS_ASSERT(index >= 0 && index < 4);
17+
BS_TEST_ASSERT(index >= 0 && index < 4);
1818

1919
return values[index];
2020
}

0 commit comments

Comments
 (0)