Subject: Re: [boost] A compile-time-counter code snippet for boost
From: Louis Dionne (ldionne.2_at_[hidden])
Date: 2015-09-21 12:08:43


Igor V. Chesnokov <ichesnokov <at> gmail.com> writes:

>
> gmane.comp.lib.boost.devel
>
>
> // Copyright (C) 2005 Igor Chesnokov, mailto:ichesnokov <at>
> // gmail.com (VC 6.5,VC 7.1 +
counter code)
> // Copyright (C) 2005-2007 Peder Holt (VC 7.0 + framework)
> // Copyright (C) 2006 Steven Watanabe (VC 8.0)
>
> // Use, modification and distribution is subject to the Boost Software
> // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
>
> #ifndef BOOST_TYPEOF_MSVC_TYPEOF_IMPL_HPP_INCLUDED
> # define BOOST_TYPEOF_MSVC_TYPEOF_IMPL_HPP_INCLUDED
>
> # include <boost/config.hpp>
> # include <boost/detail/workaround.hpp>
> # include <boost/mpl/int.hpp>
> # include <boost/type_traits/is_function.hpp>
> # include <boost/utility/enable_if.hpp>
>
> # if BOOST_WORKAROUND(BOOST_MSVC,>=1310)
> # include <typeinfo>
> # endif
>
> [snip a lot]

I'm not sure you should expect people to spend some time understanding this
if you do not provide any additional information. Don't get me wrong; a
compile-time counter seems like an interesting thing to have in Boost, but
posting this 300 LOC header as-is is not the best way to get things going IMHO.

What is this and what is it useful for?

Regards,
Louis