I am trying to understand the difference between 2 different pieces of code. What is the difference between T:Manifest
and T
?
I read about the manifests but didn't totally get it.
abstract class Def[+T]{
}
def findDefinition[T](d: Def[T]) ={
//some code
}
def findDefinition[T:Manifest](d: Def[T]) = {
//some code
}