Commit graph

1792 commits

Author SHA1 Message Date
Peter Conrad
f4866b777e Move helper classes into fc::detail 2019-09-16 12:00:38 +02:00
Nathan Hourt
9db1417b25
Merge pull request #160 from nathanhourt/master
Add FC_REFLECT_DERIVED_NO_TYPENAME
2019-09-02 11:52:18 -05:00
Nathan Hourt
dadfe189d4 Add FC_REFLECT_DERIVED_NO_TYPENAME
This is moved to FC from graphene/protocol/types.hpp
2019-09-02 10:02:51 -05:00
Nathan Hourt
7e69567dd0
Merge pull request #158 from nathanhourt/master
Fix build on G++ 7
2019-09-02 09:53:20 -05:00
Nathan Hourt
1699b0ac36 Fix build on updated G++ 2019-09-01 12:53:01 -05:00
Nathan Hourt
4b7bcb951d
Merge pull request #156 from nathanhourt/reflection-updates
Improve reflection system and static_variant
2019-09-01 10:33:40 -05:00
Nathan Hourt
292584ca59 Add static_variant::operator==
For real this time :)
2019-08-31 12:48:52 -05:00
Nathan Hourt
94cb1858b8 Fix constexprs, unused code 2019-08-31 12:48:52 -05:00
Abit
78aaaac8e1
Merge pull request #157 from bitshares/for-core-3-3
Merge for-core-3-3 branch into master
2019-08-30 22:27:42 +02:00
Nathan Hourt
c69ea32613 Improve reflection system and static_variant
Previously, fc reflection generated visitor infrastructure capable of
visiting each field of a struct; however, this is only useful for run-
time operations on structures. No compile-time information was preserved
about the fields of a struct, making compile-time introspection of types
impossible.

Now FC reflection generates rich compile-time information about the
members of structs, including types, names, and structure, allowing
code to be written to explore types in detail at compile-time and fetch
arbitrary fields at runtime without needing to iterate over the unwanted
fields.

To make this a reality, a new `typelist` type was added to store this
compile-time information. This type is also useful within the context of
`static_variant`, as SV previously used implementation detail types in a
private namespace to provide this functionality. Now `static_variant`
uses the reusable functionality of `typelist` to operate, dramatically
reducing the amount of code dedicated to `static_variant` and also
making `static_variant` types more flexible to work with since their
infrastructure is now based on the `typelist` public interface.
2019-08-30 14:21:36 -05:00
Nathan Hourt
5278a125df
Merge pull request #154 from nathanhourt/sv_overloads
Replace improper static_variant operator overloads with comparators
2019-08-30 14:19:06 -05:00
Peter Conrad
7a4758671f
Merge pull request #152 from pmconrad/1952_fix_assert
Possible fix for core #1952
2019-08-30 20:44:18 +02:00
Nathan Hourt
45cb433d47 Fixes from code review 2019-08-30 11:52:05 -05:00
Peter Conrad
9e81e1d5b6
Merge pull request #153 from crypto-ape/fix_for_msvc_broken_static_evaluation_in_array_declaration
Fix Compilation with MSVC
2019-08-30 18:04:17 +02:00
Nathan Hourt
7954c4a9c0
Merge pull request #155 from bitshares/nathanhourt-fix-logger-warnings
Fix warnings (ref bitshares/bitshares-core#1584)
2019-08-29 13:11:25 -05:00
Nathan Hourt
cce644f686
Fix warnings
The `appender` class is intended to be inherited and used polymorphically, but does not have a virtual destructor, which causes warnings. This adds a virtual destructor to fix these warnings.
2019-08-29 11:26:34 -05:00
Nathan Hourt
9f7f1b4790 Replace improper static_variant operator overloads with comparators 2019-08-28 15:51:14 -05:00
crypto-ape
5bb0254d83 fix array declaration for broken msvc static expression evaluation 2019-08-26 14:10:43 +02:00
Peter Conrad
78ffb6dbd3 Possible fix for core #1952 2019-08-22 11:11:17 +02:00
Peter Conrad
1d2d9bf2a4
Merge pull request #151 from pmconrad/1948_fix_editline
Fix editline build on non-win32
2019-08-21 14:10:19 +02:00
Peter Conrad
ea85954e17 Adjust whitespace 2019-08-21 11:31:41 +02:00
Peter Conrad
81cc84c172 Fix core #1948 - editline does not build 2019-08-21 11:31:09 +02:00
John M. Jones
1eebd3c692
Merge pull request #149 from bitshares/jmj_cmake
Remove custom FindBoost.cmake
2019-08-20 14:52:38 -05:00
Peter Conrad
71f5348101
Merge pull request #150 from pmconrad/tcp_socket_size
Fix core #1935
2019-08-20 15:43:39 +02:00
Peter Conrad
7b37cd6eff Fix core #1935 2019-08-19 12:09:53 +02:00
Peter Conrad
699238f08f Fix build with older cmake 2019-08-17 10:23:15 +02:00
Peter Conrad
c94abf71a3
Merge pull request #148 from crypto-ape/support_building_on_open_bsd
Support Building on OpenBSD
2019-08-17 10:09:05 +02:00
John Jones
3f1096d23e Remove custom FindBoost.cmake 2019-08-16 13:24:28 -05:00
crypto-ape
727e09ebe7 support openbsd // implement tcp keep-alive polling 2019-08-15 12:22:59 +02:00
crypto-ape
4ac6887deb support openbsd // compile with libressl 2019-08-15 12:22:59 +02:00
crypto-ape
cb5f7d3cdd support openbsd // get rid of alloca 2019-08-15 12:22:59 +02:00
crypto-ape
a1c2ff9943 support openbsd // make code compliant with clang 2019-08-15 12:22:54 +02:00
John M. Jones
91d8772b7b
Merge pull request #147 from bitshares/jmj_winfix
Increase size for Boost 1.70
2019-08-13 14:02:18 -05:00
Abit
f7a1e532ca
Merge pull request #146 from bitshares/optional-api-fix
Fix optional API arguments
2019-08-13 20:12:59 +02:00
John Jones
8426b45d6c Increase size for Boost 1.70 2019-08-13 13:11:36 -05:00
Abit
17c46399ed
Merge pull request #145 from nathanhourt/bts_1898
Resolves issue https://github.com/bitshares/bitshares-core/issues/1898: Fix crash in API
2019-08-13 19:24:18 +02:00
abitmore
7b6c359a32 Update test case for optional API arguments
Reproduces https://github.com/bitshares/bitshares-core/issues/1898
2019-08-13 13:09:31 -04:00
John M. Jones
82af8b55bd
Merge pull request #140 from pmconrad/1584_more_simplification
Fix simplifications
2019-08-13 06:09:51 -05:00
Nathan Hourt
06f88979a0 Resolve #1898: Fix crash in API
We were getting the moral equivalent of a null pointer dereference by
incrementing an iterator past its past-the-end position, then
dereferencing it. This is now fixed.
2019-08-11 13:51:08 -05:00
Peter Conrad
d3c85a8415 Fix cmake warning 2019-08-11 12:15:54 +02:00
John M. Jones
24f747863d
Merge pull request #144 from bitshares/jmj_ws_boost170
Bump websocketpp for Boost 1.70
2019-08-07 13:37:22 -05:00
Peter Conrad
e45a449701 Fixed type of chr37 2019-08-05 21:28:12 +02:00
Peter Conrad
d8bec3d847 Resolved another begin/data inconsistency 2019-08-05 21:27:53 +02:00
Peter Conrad
2dc5ad8bac Try to work around __int128 problem on mac 2019-08-05 21:18:17 +02:00
John Jones
fd0b197900 bump websocketpp for Boost 1.70 2019-08-05 10:24:12 -05:00
Peter Conrad
42be69c3f7 Removed unused var 2019-08-02 17:31:28 +02:00
Peter Conrad
cabab23e2c Replaced more array::begin() with data() 2019-08-02 17:31:07 +02:00
Peter Conrad
a9a6cb94d1 Replaced more begin() with data() 2019-07-29 12:21:15 +02:00
Peter Conrad
ce79181dcf Replaced more instances of array::begin with array::data 2019-07-26 15:03:22 +02:00
Peter Conrad
6008c96c1a Allow more space for windows sockets due to fc::future changes 2019-07-26 15:02:17 +02:00