My code is grayed out. What does that mean? using MS visual.

This is my header file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef ARRAY_H
#define ARRAY_H

#include <iostream>

using namespace std;

namespace list
{
	template<class class_type>
	class List
	{
	public:
		List(short max);

		~List();

		short length() const;

		void add(class_type new_element);

		void erase();

		short find(class_type look_for, short index);

		friend ostream& operator <<(ostream& outs, const List<class_type>& list);
	private:
		class_type* object;
		short max_length;
		short current_length;
	};
}

#endif 


lines 2-32 are in gray for some reason. What does that mean?
Have you copied the include guard from some other file and forgot to change it? You should only use ARRAY_H for one header file.
^^^That fixed it
Topic archived. No new replies allowed.