
Why does the common file utf8_codecvt_facet.cpp include utf8_codecvt_facet.hpp =before= including boost/config.hpp? The wrapper boost_1_43_0\libs\program_options\src\utf8_codecvt_facet.cpp must itself include config first or it won't work. So putting the config include here is useless as it can never be used there. --John TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

John Dlugosz wrote:
Why does the common file utf8_codecvt_facet.cpp include utf8_codecvt_facet.hpp =before= including boost/config.hpp?
The wrapper boost_1_43_0\libs\program_options\src\utf8_codecvt_facet.cpp must itself include config first or it won't work.
Could you be more precise? Which config, and why it won't work? The above file includes boost/program_options/config.hpp, which is a different file from boost/config.hpp - Volodya

The utf8_codecvt_facet.hpp file uses BOOST_* configuration macros without itself including any kind of configuration. The config must be included by the translation unit before including utf8_codecvt_facet.hpp. So, including utf8_codecvt_facet.hpp and then including the config file doesn't make sense. The config must be included first.
Could you be more precise? Which config, and why it won't work? The above file includes boost/program_options/config.hpp, which is a different file from boost/config.hpp
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

John Dlugosz wrote:
The utf8_codecvt_facet.hpp file uses BOOST_* configuration macros without itself including any kind of configuration.
I see this in boost/detail/utf8_codecvt_facet.hpp:
// header comment snipped
#include <locale>
#include <cwchar> // for mbstate_t
#include <cstddef> // for std::size_t
#include
participants (2)
-
John Dlugosz
-
Vladimir Prus