Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет kouzdra ([info]kouzdra)
@ 2013-03-07 16:55:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
"Это конец, подумал Штирлиц, но где же пистолет..."
По-моему они забыли встроить туда умывальник:
An alternative mechanism for processing integer and 
floating point raw literals is through a variadic template:

template<char...> OutputType operator "" _tuffix();
 
OutputType some_variable = 1234_tuffix;
OutputType another_variable = 2.17_tuffix;

This instantiates the literal processing function as 
operator "" _tuffix<'1', '2', '3', '4'>(). 
In this form, there is no terminating null character to the string. 

The main purpose to doing this is to use C++11's constexpr 
keyword and the compiler to allow the literal to be transformed 
entirely at compile time, assuming OutputType is a 
constexpr-constructable and copyable type, and the literal 
processing function is a constexpr function.


(Добавить комментарий)


(Анонимно)
2013-03-07 18:38 (ссылка)
стоит < pre > убрать из кода, всё-таки

(Ответить)


[info]tiphareth
2013-03-08 08:55 (ссылка)
да, ленту перекосил, читать невозможно

(Ответить)