Skip to content

Commit 42f5093

Browse files
hageboeckdpiparo
authored andcommitted
[PyROOT] Fix a warning regarding a const return type.
Fix a warning when ACLiC runs: /Users/sftnight/ROOT-CI/build/bindings/pyroot/cppyy/cppyy/test/./stltypes.h:81:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] 81 | static const size_t size() { return sz; } | ^~~~~
1 parent 601c211 commit 42f5093

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/pyroot/cppyy/cppyy/test/stltypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class stl_like_class2 {
7878
value_type fData[sz];
7979

8080
public:
81-
static const size_t size() { return sz; }
81+
static size_t size() { return sz; }
8282
value_type& operator[](ptrdiff_t i) { return fData[i]; }
8383
};
8484

0 commit comments

Comments
 (0)