Make Unreal REAL.
article thumbnail

 

 

Call by reference of bool types

How can I change this piece of code to a working one?! #include <iostream> void foo( bool &b ) // ERROR in passing argument 1 of ‘void foo(bool&)’ { std::cout << b <<...

stackoverflow.com

// 이렇게는 사용할 수 없다 ! !
void foo(bool& b);

// const를 붙이면 가능하다.
void foo(const bool& b);
profile

Make Unreal REAL.

@diesuki4

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그