|
Boost Users : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-12 20:56:34
AMDG
Bob Monat wrote:
> >> _MSC_VER 1400
> >>
> >> _MSC_FULL_VER 140040310
> >>
> >> Please excuse my ignorance. Is there any easy way to display these values?
> >>
>
> Although I didn't say it, I was looking for a compile time, not run time, method.
>
In this context, I don't see why it matters.
You can try something like this
#pragma warning(push, 4)
#pragma warning(default: 4150)
template<int N>
struct _MSC_VER_IS;
extern _MSC_VER_IS<_MSC_VER>* display_msc_ver_impl;
inline void display_msc_ver() {
sizeof(delete display_msc_ver_impl, 0);
}
#pragma warning(pop)
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net