String Conversion with Boost Locale: Different Behaviour on Windows and Linux

Boost.Locale Examples doesn't runs in VS2010

For others who may face the same issue, I found the solution. The program still faced error in this example ran for calendar.cpp, collate.cpp and `conversions.cpp from this link.

The solution was to add BOOST_ALL_DYN_LINK in preprocessor under Configuration Properties \ C/C++ \ Preprocessor. The program was able to run afterwards.

PS: In linker I had added boost_locale-vc100-mt-gd-1_55.lib.

Thymeleaf compare #locale expression object with string

Based on the answer posted by David_Garcia, I could resolve my issue this way:

th:class="__${#locale}__=='en'?'active':''


Related Topics



Leave a reply



Submit