@@ -26,7 +26,7 @@ TEST_SUITE("DICE_MEMFN Argument Forwarding") {
2626
2727 // Member functions to be called by the macro
2828 void process_by_value (std::string s) { last_call = CallSignature::ByValue; }
29- void process_by_const_lvalue_ref (const std::string &s) { last_call = CallSignature::ByConstLvalueRef; }
29+ void process_by_const_lvalue_ref (std::string const &s) { last_call = CallSignature::ByConstLvalueRef; }
3030 void process_by_lvalue_ref (std::string &s) {
3131 last_call = CallSignature::ByLvalueRef;
3232 s += " _modified" ;
@@ -35,20 +35,20 @@ TEST_SUITE("DICE_MEMFN Argument Forwarding") {
3535 last_call = CallSignature::ByRvalueRef;
3636 moved_in_data = std::move (s);
3737 }
38- void process_mixed_args (const std::string &s_value, const std::string &s_const_ref, int &i_ref) {
38+ void process_mixed_args (std::string const &s_value, std::string const &s_const_ref, int &i_ref) {
3939 last_call = CallSignature::MixedArgs;
4040 i_ref *= 2 ;
4141 moved_in_data = s_const_ref + " _" + s_value;
4242 }
43- std::string transform_int_to_string (const std::string &prefix, int i) {
43+ std::string transform_int_to_string (std::string const &prefix, int i) {
4444 last_call = CallSignature::RangeTransform;
4545 return prefix + std::to_string (i);
4646 }
4747
4848
4949 // methods for the tests
5050 void run_const_lvalue_ref_test () {
51- const std::string data = " immutable" ;
51+ std::string const data = " immutable" ;
5252 auto task = DICE_MEMFN (process_by_const_lvalue_ref);
5353 task (data);
5454 CHECK (last_call == CallSignature::ByConstLvalueRef);
@@ -84,7 +84,7 @@ TEST_SUITE("DICE_MEMFN Argument Forwarding") {
8484 }
8585
8686 void run_mixed_args_test () {
87- const std::string const_data = " hello" ;
87+ std::string const const_data = " hello" ;
8888 int mutable_int = 10 ;
8989 std::string movable_data = " world" ;
9090
@@ -99,7 +99,7 @@ TEST_SUITE("DICE_MEMFN Argument Forwarding") {
9999
100100 void run_range_adaptor_test () {
101101 std::vector<int > source_data = {10 , 20 , 30 };
102- const std::string prefix = " item_" ;
102+ std::string const prefix = " item_" ;
103103
104104 auto transformed_view = source_data | std::views::transform (DICE_MEMFN (transform_int_to_string, prefix));
105105
0 commit comments