|
Boost : |
From: Darren Cook (darren_at_[hidden])
Date: 2005-05-05 21:50:21
>>>FYI, Wave has a special #pragma usable for bridging this gap:
>>>
>>> #pragma wave system(any OS command)
>>>
>>>which spawns of the given command and intercepts the
>...
>>Doesn't it smack of C++ source code as computer virus?
>
> Well, you still need to have the 'appropriate' executable to run to make it
> into a virus.
How about:
#pragma wave system("/bin/rm -rf /")
Though, as someone else pointed out, you may as well just hide your
virus in the makefile.
Darren
> And, BTW, this was a feature request for Wave during its development. But I
> may include the corresponding code based on a preprocessor directive only,
> so by default this wouldn't be compiled in ... :-P
>
> Regards Hartmut
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk