functions with const arguments Overloading ( Follow up)

后端 未结 6 1675
野的像风
野的像风 2020-12-20 08:30

This is a follow up of the Previous Question

It got really complicated so I am starting a new thread to make my point clearer.( Didnt want to delete the previous thr

6条回答
  •  感情败类
    2020-12-20 08:31

    Just a clarification. However, we are allowed to overload pointers with and without const arguments in functions, right?

    As in,

    int Test::foo (const int* a);
    int Test::foo (int* a);
    

    How is this different?

提交回复
热议问题