Я и мой ёбаный кот на фоне ковра. Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1235.0 пользователей не могут ошибаться!
?6913
прекрасное6424
говно5887
говнорашка5512
хуита4695
anime3056
linux2645
music2625
bnw2590
рашка2561
log2339
ололо2115
pic1815
дунч1734
сталирасты1488
украина1437
быдло1435
bnw_ppl1371
дыбр1237
гімно1158

c++
нарешті gdb перепишуть на нормальную мову програмування: https://sourceware.org/gdb/wiki/cxx-conversion
#CVN7WW (1+1) / @hate-engine / 3174 дня назад

2017
плюсомрази до сих пор не изобрели пакетный менеджер

#BG0R6I (2) / @anonymous / 3179 дней назад
? c++

а в 2017м уже стандартизировали #pragma once?

#L1J6H7 (7+2) / @hirthwork / 3194 дня назад
Huge C++ PATCH to merge c++-concepts branch https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00377.html
#119YU1 (0+1) / @hate-engine / 3206 дней назад
http://blog.maidsafe.net/2015/07/01/the-ants-are-coming/ "Soon after, heavily frustrated by the speed at which we were developing in C++, we started looking into ways to speed up development without a reduction in code quality, surely the holy grail of software development. After much research, David became increasingly convinced that a new systems-level language, Rust, had something to offer. In his spare time (between about 2 a.m. and 5 a.m.) he started transposing one of our most complex libraries, Self-Encryption (the component that seamlessly splits data into smaller chunks and encrypts them), over to Rust, which at that time wasn’t even in Beta yet. This was very successful and fast! David followed a similar process with MaidSafe’s Routing library. With another successful test complete our development team was split for a few weeks while the core team remained in C++ and another team started transposing the rest of the code. This was a risky and scary time. To split the dev team at a period when we were under significant pressure to produce a stable network seemed counterintuitive. But thankfully, going backwards to move forward paid off, and without this change there is no doubt in our minds that we would not be where we are today. It is not the intention to go into detail here about how and whether Rust is better than C++. For debates on that subject you can check out some of the threads on the forum and elsewhere. I think that is a debate as contentious as GPL vs MIT, or even Borg vs MacEnroe, fun to debate but don’t expect consensus any time soon. All I can say is that it’s working for us and allows us to iterate quickly, be more defined with our tasks and be more definitive with our timescales."
#0TN0OX (2) / @o01eg / 3213 дней назад

Почему Base and Derived ковариантны, однако, shared_ptr<Base> and shared_ptr<Derived> - нет?

#0F2EHU (11+1) / @ninesigns / 3249 дней назад

Угадайте не гугля откуда ента цитата:

Именно поэтому я считаю с++ программистов именно «Программистами» с большой буквы. Они как хирурги в современном мире программирования ) А остальные так… педиатры всякие, медбратья )

#2CZZZC (20) / @ninesigns / 3258 дней назад
c++

Предлагаю включить в стандарт ISO C++ следующую строчку. Ну, чтобы не было недоразумений.

Any program that written in C++ is ill-formed.
#VMBKTS (1+1) / @anonymous / 3277 дней назад
ДЕДФУД ПОСЛЕ СМЕРТИ В АДУ ТЫ БУДЕШЬ КОМПИЛЯТЬ КРЕСТОПАРАШУ НА АТОМЕ СУКА
#7NLYR2 (2+2) / @greenbastad / 3285 дней назад
>Most of the onboard autonomous driving software on MER and MSL is written in C++
#EGMJO3 (0+1) / @hate-engine / 3291 день назад
c++ ?

Нахер нужен std::bind, когда есть лямбдочки?

#UFC7D9 (22) / @ninesigns / 3305 дней назад

путь к успеху: начало https://v1.std3.ru/70/40/1427403964-7040334ac7b8e3c3a8cde205f43d6b7f.jpg

#4F0FHW (2+3) / @hirthwork / 3312 дней назад

Посоветуйте гайды по плюсовым шаблонам в адаптированом изложении для лиспера.
Заебало читать охуительные сообщеня об ошибках и тасовать туда-сюда куски кода в ожидании когда эта параша соберется.

#BYQ6FW (24+1) / @ninesigns / 3326 дней назад

Чо напечатает эта программа?
inb4: нахуй пошел

#include <stdio.h>

class A {
    bool m_init;
public:
    A(){m_init = true; printf ("ctor\n");}
    ~A(){
        printf ("dtor\n");
        if (m_init) {
            deinit();
        }
}

    void deinit () {
            printf ("deinit!\n");
            m_init = false;
    }
};

int main() {

    A a;
    a.~A();
    return 0;
}
#W1T1Z3 (27) / @ninesigns / 3396 дней назад
А пока из могилы доносятся споры о лицензии: http://i.imgur.com/aiJpAEt.png http://i.imgur.com/bCAIcxn.png
#QL3CD8 (1+1) / @o01eg / 3416 дней назад
c++

Все мы любим частично специализировать шаблоны.
Вот примерно так:

template <class>
struct Flip;

template <class A, class B>
struct Flip <std::pair<A, B>>
{};

template <class A>
struct Flip <std::array<A, 2>>
{};

Неудобно, что перед тем как использовать новое имя в аргументах, его нужно сначала объявить в параметрах шаблона.
Из-за этого код бывает многословным:

template <class T, T A, class B>
struct Cons;

template <class T, template<T...>class Arr, T Head, T...Tail>
struct Сons <T, Head, Arr<Tail...>>
{};

Что, если сделать специальный синтаксический сахар (с транслятором в стандартные кресты) для того, чтобы можно было делать объявления прямо внутри аргументов?

template <>
struct Flip <std::pair<class A, class B>>
{};

template <>
struct Flip <std::array<class A, 2>>
{};

template <template<class T...>class Arr>
struct cons <T Head, Arr<T...Tail>>
{};

template <> без параметров можно опустить.
Вместо template<class T...>class Arr в объявлении можно писать class Arr<T...>.
И заменить ключевое слово class на @.

struct Flip <std::pair<@A, @B>>
{};

struct Flip <std::array<@A, 2>>
{};

template <@Arr<@T...>>
struct cons <T Head, Arr<T...Tail>>
{};

Да, не стоит забывать, что объявленное можно использовать более одного раза. Следующие строки эквивалентны:

template <class A> struct Eq <A, A> {};
struct Eq <@A, @A> {};
struct Eq <@A, A> {};

С таким сахаром писать на крестах будет немного проще.

#RAVCCQ (3) / @fix / 3419 дней назад
--
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.