Aktywne Wpisy

zwora +330
Literatura z pogranicza #filozofia i #metafizyka #smierc przemawia na nowo. #ksiazki #literatura #stopcham #polska #wydarzenia
źródło: 1000015041
Pobierz
wjtk123 +269
Wczoraj gruchnęła wiadomość, która wywołała u mnie szok i radość: Polska negocjuje dołączenie do brytyjsko-włosko-japońskiego programu samolotu VI generacji GCAP. Oczywiście nie jako równorzędny partner, ale jako finansujący i przyszły podwykonawca. Jest to przełomowa informacja, na wielu płaszczyznach:
- Polska jako państwo zaczyna myśleć 10-20 lat naprzód,
- nie chcemy już tylko kupować gotowych produktów, ale chcemy też inwestować w najbardziej zaawansowane programy wysokich technologii,
- angażujemy się w europejskie programy zbrojeniowe.
Z militarnego punktu widzenia
- Polska jako państwo zaczyna myśleć 10-20 lat naprzód,
- nie chcemy już tylko kupować gotowych produktów, ale chcemy też inwestować w najbardziej zaawansowane programy wysokich technologii,
- angażujemy się w europejskie programy zbrojeniowe.
Z militarnego punktu widzenia
źródło: gcap
Pobierz



Mam mały problem z użyciem standardu C++11 w kompilatorze MinGW.
Znalazłęm jego rozwiązanie tutaj:
http://stackoverflow.com/questions/8542221/stdstoi-doesnt-exist-in-g-4-6-1-on-mingw
,,This is a result of a non-standard declaration of vswprintf on Windows. The GNU Standard Library defines GLIBCXXHAVEBROKENVSWPRINTF on this platform, which in turn disables the conversion functions you're attempting to use. You can read more about this issue and macro here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522.
If you're willing to modify the header files distributed with MinGW, you may be able to work around this by removing the !defined(GLIBCXXHAVEBROKENVSWPRINTF) macro on line 2754 of .../lib/gcc/mingw32/4.6.1/include/c++/bits/basicstring.h, and adding it back around lines 2905 to 2965 (the lines that reference std::vswprintf). You won't be able to use the std::towstring functions, but many of the other conversion functions should be available."
Usunąłem już
,,!defined(GLIBCXXHAVEBROKENVSWPRINTF)"
i teraz nie mam pojęcia gdzie mam wstawić ten fragment
Prawdopobnie gdzieś tutaj: (Tylko gdzie?)
// DR 1261.
inline wstring
towstring(int val)
{ return gnucxx::_toxstring(&!defined(GLIBCXXHAVEBROKENVSWPRINTF), 4 * sizeof(int),
L"%d", _val); }
inline wstring
towstring(unsigned _val)
{ return gnucxx::_toxstring(&std::vswprintf,
4 * sizeof(unsigned),
L"%u", _val); }
inline wstring
towstring(long _val)
{ return gnucxx::_toxstring(&std::vswprintf, 4 * sizeof(long),
L"%ld", _val); }
inline wstring
towstring(unsigned long _val)
{ return gnucxx::_toxstring(&std::vswprintf,
4 * sizeof(unsigned long),
L"%lu", _val); }
inline wstring
towstring(long long _val)
{ return gnucxx::_toxstring(&std::vswprintf,
4 * sizeof(long long),
L"%lld", _val); }
inline wstring
towstring(unsigned long long _val)
{ return gnucxx::_toxstring(&std::vswprintf,
4 * sizeof(unsigned long long),
L"%llu", _val); }
inline wstring
towstring(float _val)
{
const int n =
gnucxx::_numerictraits::_maxexponent10 + 20;
return _gnucxx::_toxstring(&std::vswprintf, _n,
L"%f", val);
}
inline wstring
towstring(double _val)
{
const int n =
gnucxx::_numerictraits::_maxexponent10 + 20;
return _gnucxx::_toxstring(&std::vswprintf, _n,
L"%f", val);
}
inline wstring
towstring(long double _val)
{
const int n =
gnucxx::_numerictraits::_maxexponent10 + 20;
return _gnucxx::_toxstring(&std::vswprintf, _n,
L"%Lf", _val);
}
#endif
@kubaczka: Dzięki za info
(plusik za wrzutke na to co formatuje i koloruje składnie, niby nic ale czytelność wzrasta)
@Erk700: Jak chcesz robić w nowym C++ to zupgraduj się chociaż do 5.3, jak nie 6.2.