mirror of
https://github.com/boostorg/describe.git
synced 2026-01-20 16:32:36 +00:00
Compare commits
5 Commits
feature/en
...
boost-1.85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fad199e782 | ||
|
|
e005f6950c | ||
|
|
2e5dcc80b2 | ||
|
|
ba1459ac84 | ||
|
|
c89e4dd3db |
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -115,24 +115,33 @@ jobs:
|
||||
- toolset: clang
|
||||
compiler: clang++-13
|
||||
cxxstd: "03,11,14,17,20,2b"
|
||||
os: ubuntu-22.04
|
||||
container: ubuntu:22.04
|
||||
os: ubuntu-latest
|
||||
install: clang-13
|
||||
- toolset: clang
|
||||
compiler: clang++-14
|
||||
cxxstd: "03,11,14,17,20,2b"
|
||||
os: ubuntu-22.04
|
||||
container: ubuntu:22.04
|
||||
os: ubuntu-latest
|
||||
install: clang-14
|
||||
- toolset: clang
|
||||
compiler: clang++-15
|
||||
cxxstd: "03,11,14,17,20,2b"
|
||||
os: ubuntu-22.04
|
||||
container: ubuntu:22.04
|
||||
os: ubuntu-latest
|
||||
install: clang-15
|
||||
- toolset: clang
|
||||
compiler: clang++-16
|
||||
cxxstd: "03,11,14,17,20,2b"
|
||||
os: ubuntu-latest
|
||||
container: ubuntu:23.04
|
||||
os: ubuntu-latest
|
||||
install: clang-16
|
||||
- toolset: clang
|
||||
compiler: clang++-17
|
||||
cxxstd: "03,11,14,17,20,2b"
|
||||
container: ubuntu:23.10
|
||||
os: ubuntu-latest
|
||||
install: clang-17
|
||||
- toolset: clang
|
||||
cxxstd: "03,11,14,17,2a"
|
||||
os: macos-11
|
||||
|
||||
@@ -18,7 +18,7 @@ template<class T> struct fmt::formatter<T, char, std::enable_if_t<
|
||||
|
||||
if( it != end && *it != '}' )
|
||||
{
|
||||
ctx.error_handler().on_error( "invalid format" );
|
||||
throw_format_error( "invalid format" );
|
||||
}
|
||||
|
||||
return it;
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
if( i1 != i2 )
|
||||
{
|
||||
ctx.error_handler().on_error( "invalid format" );
|
||||
throw_format_error( "invalid format" );
|
||||
}
|
||||
|
||||
return i1;
|
||||
|
||||
@@ -34,7 +34,7 @@ template<class C1, class C2, class R, class... A>
|
||||
|
||||
template<class C>
|
||||
boost::json::value
|
||||
call( C & c, boost::string_view method, boost::json::value const & args )
|
||||
call( C & c, boost::string_view method, boost::json::array const & args )
|
||||
{
|
||||
using Fd = boost::describe::describe_members<C,
|
||||
boost::describe::mod_public | boost::describe::mod_function>;
|
||||
@@ -46,7 +46,7 @@ template<class C>
|
||||
|
||||
if( !found && method == D.name)
|
||||
{
|
||||
result = call_impl( c, D.pointer, args.as_array() );
|
||||
result = call_impl( c, D.pointer, args );
|
||||
found = true;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,6 @@ BOOST_DESCRIBE_STRUCT(Object, (), (greet, add))
|
||||
int main()
|
||||
{
|
||||
Object obj;
|
||||
std::cout << call( obj, "greet", {{ "world" }} ) << std::endl;
|
||||
std::cout << call( obj, "add", {{ 1, 2 }} ) << std::endl;
|
||||
std::cout << call( obj, "greet", { "world" } ) << std::endl;
|
||||
std::cout << call( obj, "add", { 1, 2 } ) << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user