We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cc577 commit d0ce4f9Copy full SHA for d0ce4f9
include/jni/type_signature.hpp
@@ -4,6 +4,7 @@
4
#include <jni/object.hpp>
5
#include <jni/array.hpp>
6
7
+#include <initializer_list>
8
#include <string>
9
10
namespace jni
@@ -44,12 +45,12 @@ namespace jni
44
45
struct TypeSignature< R (Args...) >
46
{
47
private:
- template < class... T > void DoNothingWith( T&&... ) const {}
48
+ template < class T > void DoNothingWith(const std::initializer_list<T>&) const {}
49
50
std::string Compute() const
51
52
static std::string result("(");
- DoNothingWith( ( result += TypeSignature<Args>()() )... );
53
+ DoNothingWith<int>( { ( result += TypeSignature<Args>()(), 0 )... } );
54
result += ")";
55
result += TypeSignature<R>()();
56
return result;
0 commit comments