Index: octonion.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/math/octonion.hpp,v retrieving revision 1.5 diff -r1.5 octonion.hpp 21a22,29 > // gcc 2.95.x uses expression templates for valarray calculations, but > // the result is not conforming. We need BOOST_GET_VALARRAY to get an > // actual valarray result when we need to call a member function > # define BOOST_GET_VALARRAY(T, x) valarray(x) > // gcc 2.95.x has an "std::ios" class that is similar to > // "std::ios_base", so we just use a #define > # define BOOST_IOS_BASE ::std::ios > 29a38,40 > #else > # define BOOST_GET_VALARRAY(T, x) x > # define BOOST_IOS_BASE ::std::ios_base 942c953 < type mixam = static_cast(1)/abs(tr).max(); \ --- > type mixam = static_cast(1)/BOOST_GET_VALARRAY(type, abs(tr)).max(); \ 985c996 < type mixam = static_cast(1)/abs(tr).max(); \ --- > type mixam = static_cast(1)/BOOST_GET_VALARRAY(type, abs(tr)).max(); \ 1033c1044 < type mixam = static_cast(1)/abs(tr).max(); \ --- > type mixam = static_cast(1)/BOOST_GET_VALARRAY(type, abs(tr)).max(); \ 1580c1591,1594 < --- > #if defined(__GNUC__) && __GNUC__ < 3 > template > std::istream& operator>>(std::istream& is, octonion& o) > #else 1583a1598 > #endif 1584a1600,1602 > #if defined(__GNUC__) && __GNUC__ < 3 > typedef char charT; > #else 1586c1604 < --- > #endif 1603c1621,1624 < --- > > #if defined(__GNUC__) && __GNUC__ < 3 > char ch = char(); > #else 1604a1626 > #endif 1610c1632,1635 < --- > > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1612c1637,1638 < --- > #endif > 1618a1645,1647 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1619a1649 > #endif 1626a1657,1659 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1627a1661 > #endif 1640a1675,1677 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1641a1679 > #endif 1648a1687,1689 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1649a1691 > #endif 1666a1709,1711 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1667a1713 > #endif 1675c1721 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1680c1726 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1692a1739,1741 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1693a1743 > #endif 1702a1753,1755 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1703a1757 > #endif 1718a1773,1775 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1719a1777 > #endif 1727c1785 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1732c1790 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1737c1795 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1742c1800 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1756a1815,1817 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1757a1819 > #endif 1764a1827,1829 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1765a1831 > #endif 1776a1843,1845 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1777a1847 > #endif 1784a1855,1857 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1785a1859 > #endif 1800a1875,1877 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1801a1879 > #endif 1811c1889 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1825a1904,1906 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1826a1908 > #endif 1833a1916,1918 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1834a1920 > #endif 1853a1940,1942 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1854a1944 > #endif 1869a1960,1962 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1870a1964 > #endif 1878c1972 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1883c1977 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1888c1982 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1896a1991,1993 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1897a1995 > #endif 1912a2011,2013 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1913a2015 > #endif 1920a2023,2025 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1921a2027 > #endif 1929c2035 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1934c2040 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 1948a2055,2057 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1949a2059 > #endif 1956a2067,2069 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1957a2071 > #endif 1976a2091,2093 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1977a2095 > #endif 1992a2111,2113 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 1993a2115 > #endif 2001c2123 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2006c2128 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2011c2133 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2025a2148,2150 > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else 2026a2152 > #endif 2036c2162,2166 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2044c2174 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2057c2187,2191 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2067c2201,2205 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2075c2213 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2080c2218 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2085c2223 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2090c2228 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2096c2234 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2112c2250,2254 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2128c2270,2274 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2142c2288,2292 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2150c2300 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2155c2305 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2160c2310 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2166c2316 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2175c2325,2329 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2191c2345,2349 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2199c2357,2361 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2217c2379,2383 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2225c2391 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2230c2396 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2235c2401 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2250c2416,2420 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2258c2428,2432 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2270c2444,2448 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2278c2456,2460 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2296c2478,2482 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2304c2490 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2319c2505,2509 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2327c2517,2521 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2347c2541,2545 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2363c2561,2565 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2371c2573 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2376c2578 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2381c2583 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2390c2592,2596 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2408c2614,2618 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2416c2626,2630 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2424c2638 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2429c2643 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2444c2658,2662 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2456c2674,2678 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2472c2694,2698 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2488c2714,2718 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2496c2726 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2501c2731 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2506c2736 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2521c2751,2755 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2529c2763,2767 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2539c2777 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2552c2790,2794 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2560c2802,2806 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2570c2816 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2575c2821 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2580c2826 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2585c2831 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2591c2837 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2597c2843 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2602c2848 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2615c2861,2865 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2623c2873,2877 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2641c2895,2899 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2649c2907 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2654c2912 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2667c2925,2929 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2675c2937,2941 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2693c2959,2963 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2701c2971 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2706c2976 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2711c2981 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2716c2986 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2721c2991 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2727c2997 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2743c3013,3017 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2755c3029,3033 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2763c3041,3045 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2781c3063,3067 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2789c3075 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2804c3090,3094 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2812c3102,3106 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2832c3126,3130 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2848c3146,3150 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2856c3158 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2861c3163 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2866c3168 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2875c3177,3181 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2893c3199,3203 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2901c3211,3215 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2909c3223 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2914c3228 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2929c3243,3247 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2937c3255,3259 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2957c3279,3283 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2973c3299,3303 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 2981c3311 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2986c3316 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 2991c3321 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3006c3336,3340 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3014c3348,3352 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3024c3362 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3037c3375,3379 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3045c3387,3391 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3055c3401 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3060c3406 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3065c3411 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3070c3416 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3076c3422 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3092c3438,3442 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3104c3454,3458 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3122c3476,3480 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3138c3496,3500 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3146c3508 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3151c3513 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3166c3528,3532 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3178c3544,3548 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3198c3568,3572 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3206c3580 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3221c3595,3599 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3237c3615,3619 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3253c3635,3639 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3269c3655,3659 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3285c3675,3679 < cc = ct.narrow(ch, char()); --- > #if defined(__GNUC__) && __GNUC__ < 3 > cc = ch; > #else > cc = ct.narrow(ch, char()); > #endif 3293c3687 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3298c3692 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3303c3697 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3308c3702 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3313c3707 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3319c3713 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3325c3719 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3331c3725 < is.setstate(::std::ios_base::failbit); --- > is.setstate(BOOST_IOS_BASE::failbit); 3350c3744,3747 < --- > #if defined(__GNUC__) && __GNUC__ < 3 > template > ::std::ostream& operator<<(::std::ostream& os, octonion const & o) > #else 3353a3751 > #endif 3354a3753,3755 > #if defined(__GNUC__) && __GNUC__ < 3 > std::ostringstream s; > #else 3356c3757 < --- > #endif 3357a3759 > #ifndef BOOST_NO_STD_LOCALE 3358a3761 > #endif 3410c3813 < return(abs(temp).max()); --- > return(BOOST_GET_VALARRAY(T, abs(temp)).max()); 3419c3822 < return(abs(temp).sum()); --- > return(BOOST_GET_VALARRAY(T, abs(temp)).sum()); 3432c3835 < T maxim = abs(temp).max(); // overflow protection --- > T maxim = BOOST_GET_VALARRAY(T, abs(temp)).max(); // overflow protection 3742a4146,4147 > #undef BOOST_GET_VALARRAY > #undef BOOST_IOS_BASE