Added compile time detection of temporary objects.