we have a function f with gets a string as below
is it safe to call this function with a const char* varialbe like belowCode:void f( std::string str ) { // body }
Code:void g( const char* phrase ) { f(phrase); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |