User Tools

Site Tools


computing:drafts

Importing a savannah repository

[ui]
username = csimon

variadics and reference

:!: With C++, it's safer and more convenient to use variadic templates (standardized since C++11) then variadic functions.

The following code :

void foo(
	type &bar,
	... )
{
	va_list List;
 
	va_start( List, bar );
 
	...
}

doesn't work because va_start(…) can't deal with references. bar should be defined as type *.

:!: Above code seems to work under MSVC ; I don't try with other compilers…

Apache

For a .bz2 file to appear with the compressed icon (like .gz files), add .bz2 to the AddIcon /icons/compressed.gif ... line in autoindex.conf apache configuration file.

computing/drafts.txt · Last modified: Fri Sep 9 08:06:44 2016 (09/09/16) by Claude SIMON