Note that there are some explanatory texts on larger screens.

plurals
  1. USddevienne
    primarykey
    data
    text
    plurals
    1. COThat's exactly what I'd like to emulate using p4 at the command line, i.e. the list of submitted changelist that I have not yet updated into my workspace. p4 update -n gives me the files, while I'd like the changelist. And just like p4 update, I shouldn't have to specify any depot path or the like IMHO. How does one do that? @Timbo's p4 update -n | cut -f1 -d' ' | p4 -x- changes -m1 | sort | uniq command works, but as he remarks can be quite slow. Any other solution?
      singulars
    2. COThanks for the link Luc. This is indeed in the same spirit as my question. But the answers also leave me wanting for something better. I have a feeling that SFINAE could be of help here somehow, if the code meant not to compile is wrapped in a template, which is later used for function overloading resolution. In this code is *allowed* not to compile for one overload candidate, the default case overload is chosen instead, and that's detectable at runtime. I'm going to try something along these lines when I get the time.
      singulars
    3. COI'd rather write smart ptr code (well, actually I'd rather use the Boost ones, but this is a special case here, which in fact uses a shared_ptr inside) rather try to write a cross-platform compiler-forking, output-parsing, program that can work with VS and GCC/make ;-)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload