Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Satya Prakash Prasad
Thanks a lot - I just picked up all compiler flags that we make use in our project. Thanks a lot for the information as provided. Regards, Prakash On Mon, Mar 5, 2018 at 2:00 PM, Liu Hao wrote: > 在 2018年03月05日 16:17, Satya Prakash Prasad 写道: > > I still does not throws an error: > > (... abrid

Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Liu Hao
在 2018年03月05日 16:17, Satya Prakash Prasad 写道: > I still does not throws an error: > (... abridged ...) > > /c/tools/mingw64/bin/c++ -std=c++11 -Wall -Wconversion -Wpedantic > -Wextra -w -Wsign-compare -Wnarrowing -Wreturn-type -Wno-int-conversion > -Wtype-limits -Wuseless-cast -Wsign-conversion -W

Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Satya Prakash Prasad
I still does not throws an error: #include #include using ::std::int32_t; using ::std::uint32_t; int32_t callme() { int32_t x = -1; return x; } int main() { int32_t x = 9; uint32_t i = x; uint32_t i1 = callme(); std::cout << " " << x << " " << i << " " << i1 << std::flush << std::e

Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Liu Hao
在 2018年03月05日 15:42, Satya Prakash Prasad 写道: > Is there a compiler flag that logs warning / error in case of any implicit > conversions - like int32_t to uint32_t. > > #include > #include > > using ::std::int32_t; > using ::std::uint32_t; > > int main(int argc, char *argv[]) > { >int32_t

C++ - compilation error for all implicit conversion

2018-03-04 Thread Satya Prakash Prasad
Is there a compiler flag that logs warning / error in case of any implicit conversions - like int32_t to uint32_t. #include #include using ::std::int32_t; using ::std::uint32_t; int main(int argc, char *argv[]) { int32_t x = 9; uint32_t i = x; uint32_t i1 = socketread(...); // return