template specialization -> 'too few template-parameter-lists'

i can't find what's wrong with this code:

template <class T>
class B{
    T _t;
    B(T t) : _t(t) {}
    void printHello();

template <class T>
void B<T>::printHello(){
    std::cout << "Hello";
void B<char*>::printHello(){
    std::cout <<"Good bye!";

I keep getting:

'error: too few template-parameter-lists'


template<> is missing before the specialization

void B<char*>::printHello(){
    std::cout <<"Good bye!";

Need Your Help

Twitter share photo feature for iOS

ios cocoa-touch twitter

I currently have an iOS app with facebook integration that allows users to post their photos to facebook.

Can't contain table in div for chrome browser

html css google-chrome

Tried to contain a table within a div so that the width of the table doesn't exceed that of the containing DIV.