|
-
February 8th, 2016, 03:22 PM
#14
Re: concatenate int value from vector to long long int
 Originally Posted by monarch_dodra
Those work for me though, as you can always pass a const expression to functions taking const refs.
uhm, unless I'm missing something, no, because a reference to an automatic const int is not a constant expression ( triggering an implicit capture and hence an error ). Are you using a c++14 standard library ? ( std::max is constexpr from c++14 on ... in this case no error would happen of course )
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|