gentoo emerge unable to syncAuthor: TuboAfter setting SYNC to customized URL:SYNC="rsync://mirrors.stuhome.net/gentoo"emerge –sync always reports error:rsync: change_dir "/metadata" (in gentoo) failed: No such file or directoryAfter google, it turns out that the url which was cop Read More
posted @ 2013-10-28 20:57 英超 Views(570) Comments(0) Diggs(0) Edit
Table of Contents1 Item 4: Call empty instead of checking size() against zero2 Item 5: Prefer range member functions to their single-element counterparts1 Item 4: Call empty instead of checking size() against zero简而言之,用 container.size() 来检查 container 是否为空,而不要用 /container.size() == 0/。原因: empty is a Read More
posted @ 2013-10-28 13:54 英超 Views(382) Comments(0) Diggs(0) Edit
容器 (Containers) 用来存储对象 (Objects), 但是被存储的对象却并非原原本本是你给他的那一个, 而是你指定对象的一个拷贝。而后续对该容器内存储对象的操作,大多也是基于拷贝的。 拷贝操作通过类的成员函数 copy constructor 或者 copy assignment constructor 来完成( 如果用户 没有自己声明这两个函数,编译器会自动生成他们):class Widget {public: Widget(const Widget&); // copy constructor Widget& operator=(const Widget&am Read More
posted @ 2013-10-28 11:25 英超 Views(346) Comments(0) Diggs(0) Edit
Adding Completion to (interactive)Author: TuboQuestion:Is there any way to add my own completion to an (interactive) elisp function? Ideally, I'dlike to pass it a list of strings that it would tab-complete from. I know that using (interactive "D"), (interactive "F") or (inter Read More
posted @ 2013-10-28 10:07 英超 Views(249) Comments(0) Diggs(0) Edit